Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
I started upgrade from Angular 5 to Angular 10. Now upgraded till Angular 10 but When I'm running ng serve command then getting below error. I have already tried below two commands
'npm cache verify' then deleting node module folder then 'npm install'
Errors:
ERROR in ./node_modules/xlsx-style/dist/cpexcel.js
Module not found: Error: Can't resolve './cptable' in 'D:\PD\service\angular\node_modules\xlsx-style\dist'
ERROR in ./node_modules/xlsx-style/xlsx.js
Module not found: Error: Can't resolve 'fs' in 'D:\PD\service\angular\node_modules\xlsx-style'
ERROR in ./node_modules/xlsx-style/ods.js
Module not found: Error: Can't resolve 'fs' in 'D:\PD\service\angular\node_modules\xlsx-style'
These errors was coming after upgrade from Angular 5 to 6 as well.
Please help me how i can solve this ?
Thanks
node version : 10.13.0
npm version: 6.4.1
rxjs :6.6.7
typescript:3.9.2
Already tried solutions but not working :
node: {
fs: "empty"
} in webpack.config.js
"browser": {
"fs": false,
"os": false,
"path": false
} in package.json
Already tried solutions but not working :
node: {
fs: "empty"
} in webpack.config.js
"browser": {
"fs": false,
"os": false,
"path": false
} in package.json
Thanks for contributing an answer to Stack Overflow!
-
Please be sure to
answer the question
. Provide details and share your research!
But
avoid
…
-
Asking for help, clarification, or responding to other answers.
-
Making statements based on opinion; back them up with references or personal experience.
To learn more, see our
tips on writing great answers
.