-
Notifications
You must be signed in to change notification settings - Fork 27k
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
fs missing from webpack #2734
Comments
Your imported modules must be universal/isomorphic compatible, that means they can't use the |
Like Sergio said, it's not possible to use fs. |
This can be solved with adding |
I've added the node property to the config but this still isn't working for me. My next.config.js looks like this...
What am I doing wrong? |
you can also just exclude index.js |
Good point from @billnbell. Just import for example MapboxDraw like this: |
Thank you @RobinDvorak!! For Vue users. His solution also works in the |
// next.config.js
module.exports = withImages(
withCSS(
withSass({
exportPathMap: function() {
return {
'/': { page: '/' }
}
},
webpack(config) {
config.node = { fs: 'empty' }
return config
},
})
)
) |
I searched all over the internet and the only solution is to @bnmghjtyu0.
|
@CoryKleiser how did you applied it on the nuxt.config.js of vimeo.js ? can you share it to me? |
I've this while using that:
|
@luisfelipesdn12 Next 11 uses Webpack 5 instead of Webpack 4 where the |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
getting this error
from googling around, it seems some people had success with adding
to their webpack config
I tried adding that in
next.config.js
without success.could it be syntax, or is that not the correct file ?
similar issue seen here josephsavona/valuable#9
The text was updated successfully, but these errors were encountered: