You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some libraries such as @apollo/client/react has no an standard package name so when webpack tries to compile raises an error like this, due read-package-json validation.
Error: Invalid name: "@apollo/client/react"
at ensureValidName (.../node_modules/read-package-json/node_modules/normalize-package-data/lib/fixer.js:336:15)
at Object.fixNameField (.../node_modules/read-package-json/node_modules/normalize-package-data/lib/fixer.js:215:5)
at .../node_modules/read-package-json/node_modules/normalize-package-data/lib/normalize.js:32:38
at Array.forEach (<anonymous>)
at normalize (.../node_modules/read-package-json/node_modules/normalize-package-data/lib/normalize.js:31:15)
at final (.../node_modules/read-package-json/read-json.js:424:5)
at then (.../node_modules/read-package-json/read-json.js:156:5)
at ReadFileContext.callback (.../node_modules/read-package-json/read-json.js:345:20)
at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:237:13) undefined
I suggest to change the way package.json is loaded using the default require method which is nodejs standard, it will validate only the format and not follow the npm structure.
The text was updated successfully, but these errors were encountered:
Some libraries such as
@apollo/client/react
has no an standard package name so when webpack tries to compile raises an error like this, due read-package-json validation.I suggest to change the way package.json is loaded using the default require method which is
nodejs
standard, it will validate only the format and not follow thenpm
structure.The text was updated successfully, but these errors were encountered: