Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"WixStyleReactProvider" is not exported by "node_modules/@wix/design-system/dist/esm/index.js" #5

Open
martin-artist-scientist opened this issue Sep 10, 2024 · 1 comment

Comments

@martin-artist-scientist

I've attempted to run this by following the tutorial instructions, and by downloading this repository. When running the dev server and attempting to view the product page, the browser console contains an error:

SyntaxError: The requested module '/node_modules/.vite/deps/@wix_design-system.js?v=b8ad88f6' does not provide an export named 'WixStyleReactProvider'.

npm run build results in:

"WixStyleReactProvider" is not exported by "node_modules/@wix/design-system/dist/esm/index.js", imported by
"src/dashboard/withProviders.tsx"

Some searching shows that WixStyleReactProvider is part of the 'wix-style-react' package. I've tried installing that and changing the import to reference this package instead but then I run into different issues.

@garywyat
Copy link

It looks like you're encountering the error 'WixStyleReactProvider is not exported by node_modules/@wix/design-system/dist/esm/index.js'. This might happen if there is a mismatch in the version of the Wix Design System you're using. Try checking if the latest version of the package has been installed or if there are any breaking changes in the API. You could also consider clearing the npm cache and reinstalling the dependencies. For more troubleshooting tips on this and other common errors, visit ModEngine2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants