-
Notifications
You must be signed in to change notification settings - Fork 340
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
WARNING in ./node_modules/express/lib/view.js #4
Comments
any update on this issue. I get the same when I do yarn build? |
Hey guys would be great to get some help on this - I am not sure how to solve this in the netlify functions context... |
I also see it using However, the new site loads, so things appear to be working. Is this blocking anyone from deploying successfully? If so, I am interested in how your site is set up. |
I found the same issue. |
same issue |
Also having this issue |
Use webpack-node-externals, I mean please add following code in your webpack.config.js const nodeExternals = require('webpack-node-externals'); { |
you need to first install webpack-node-externals dependency
or
and then add whatever @heshamelmasry77 has suggested in the webpack.config.js |
Thanks, This solution solved my problem |
where is the webpack.config.js located? |
It's your file. You create it in order to customize webpack. I suggest you check out the webpack tutorial here. |
Doesn't this prevent the dependent node modules being bundled, and therefore they'll need to be added another way into the dist? If so, how should that be done? |
You can add "express" to the externals object in
This will prevent webpack from bundling Externals is also used when creating npm packages. When creating a React component library for instance you can assume that the person consuming your package has React installed as a dependency so you don't want to add it to the bundle at compilation time, so you add it to the externals object. Your package will use the React library in the If you don't want to use @joshgreifer |
What if I want express to be bundled along with my node app? |
I don't understand why this happens. Tried both solutions, none worked, had to stash changes and git pull again... |
Following ... I Got the same issue installing "express": "^4.17.1", |
Same Here. Not sure why this is still an issue |
Same issue here rip |
I don't understand, why the code is provided as non working and yet the demo works? UPDATEEveryone, make these changes and the problem is going away: UPDATE2: the /dist directory is absent. Create it and place the index inside of it. |
Kindly check if you have any unwanted imports in your component |
When yarn build:
The text was updated successfully, but these errors were encountered: