Error with React sign in widget

Hello everyone,

I have an issue when I want to open my SPA:

ERROR in ./src/OktaSignInWidget.jsx 7:0-64

Module not found: Error: Package path ./dist/css/okta-sign-in.min.css is not exported from package /Users/julienderoche/Desktop/React/okta/node_modules/@okta/okta-signin-widget (see exports field in /Users/julienderoche/Desktop/React/okta/node_modules/@okta/okta-signin-widget/package.json)

I can’t find out what’s going on despite few articles about it.

Do you have an idea?

Thank you very much for your help.

Regards

Hi @Julien, which version of the sign-in widget are you specifying in your package.json?

Hi Louis,

Thank for replying, to sum up:

In OktaSignInWidget.jsx file I put ‘@okta/okta-signin-widget/dist/css/okta-sign-in.min.css’;

instead of

‘./…/node_modules/@okta/okta-signin-widget/dist/css/okta-sign-in.min.css’;

so the path wasn’t good.

Now it works fine, I hope it will help other people like me who is noob :slight_smile:

Thanks again

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.