The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
6.8.0-next.2 update leads to webpack:/components/Html.js errors
After updating to npm version
6.8.0-next.2 I observe following errors on running React app:
TypeError: Cannot read property ‘string’ of undefined
at Module…/components/Html.js (/Users/orwell/explorer/build/client/webpack:/components/Html.js:44:20)
No changes in code whatsoever.
edit - changed to #support
I’ll ask you one of the first questions in the template to clarify though: what command are you running?
(In particular, are you running an npm command or are you running your application? If it is npm, it will help if you supply the other information from the template with npm debug log and versions and platform please.)
The errors above are errors of the application itself being run by
npx pm2 start command - code is at https://github.com/phylogeny-explorer/explorer/
There are other errors as well https://gist.github.com/orwell1984/587c5b6ab1dbfc40e0ba9f524465f3b0 File Users/orwell/explorer/build/client/server.js does exist so I’m baffled that webpack(?) can’t see is.
(Some info and ideas, but no answers.)
I was not able to reproduce with a fresh install of explorer and upgrading npm.
You can take npm out of the equation by running
What version of node do you have?
You could try a fresh build in case something gone awry (not based on knowledge of the package, just from finding there was a build script and running it to try your command):
npm run build