-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
Error: Can't resolve 'use-sync-external-store/shim/with-selector' in '/../node_modules/@slate-yjs/react/dist' #366
Comments
Facing the exact same issue |
This is somewhat related to this thread anza-xyz/wallet-adapter#200 which seems like webpack 5 issue with create-react-app. The way I fixed this issue is updating webpack config following https://stackoverflow.com/questions/63280109/how-to-update-webpack-config-for-a-react-project-created-using-create-react-app. And I updated the file
|
@cjjeon I feel terrible for not following up here, but I ended up doing exactly this. |
For anyone using Next.js (we're using // next.config.js
const nextConfig = {
// ...
transpilePackages: ['@slate-yjs/react'],
}
module.exports = nextConfig |
I ran into this using test: {
alias: {
'@slate-yjs/react': path.resolve(baseDir, 'node_modules', '@slate-yjs', 'react', 'dist', 'index.cjs'),
}
} |
I'm trying to bump
@slate-yjs/core
and@slate-yjs/react
to^0.3.0
and after fixing up the breaking API changes to cursors, my front-end is unable to build due to to the error above.This is in a react 17.0.2 create-react-app project with no explicit dependency on use-sync-external-store myself.
I tried nuking all node_modules, as well as installing after removing yarn.lock.
FWIW I don't have a package.json with "type": "module".
Any idea where this might be coming from, or how to resolve the issue?
The text was updated successfully, but these errors were encountered: