-
Notifications
You must be signed in to change notification settings - Fork 67
Module not found: Can't resolve 'fs' in 'D:\.my-folder.\node_modules\fs-extra\lib' #267
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
Comments
Hey @faisalahmedansari20, I believe this relates to SSR and the balance between the |
Hey @phillipmalboeuf thanks for help, I tried your example in next.js and put alias in my package.json. And changed reference to server SDK wherever, I have required it. And still i face same issue as here is how my package.json looks like. Please correct me if i did something wrong.
|
@faisalahmedansari20 I looked into it for next.js and you'll need to add some webpack configs, wrote down an example in #186! |
Hey @phillipmalboeuf Thank you so much. I am facing little issue. As i am new to node js i am unable to understand this issue. In my next.config.js file I used
and when i replaced it by
i get Unexpected token exception. how can fix this ? |
Using this i was able to add multiple plugins. Let me know if i am on wrong path. However this is working for me thanks. |
This is probably the wrong thread to discuss something unrelated to stitch, but @faisalahmedansari20 the
|
I found another work around by using browser attribute in package.json as
and require as
and this work for me. In my knowledge, I don't understand the pros and cons of both your solution and this one. Which one is better ? |
Ah that's a good idea @faisalahmedansari20, didn't realize the |
Thanks... |
Uh oh!
There was an error while loading. Please reload this page.
I am trying to make app using next js. So i installed mongodb-stitch-server-sdk. But when import in my index.js file i get
on console it says
The text was updated successfully, but these errors were encountered: