Error @types/core-js at compiling, npm start
See original GitHub issueI want to use https://github.com/videogular/videogular2 component in my app, and it needs @types/core. When i exec npm start at compiling it crashes, giving this errors:
node_modules/@types/core-js/index.d.ts(355,48): error TS2304: Cannot find name 'PropertyKey'.
node_modules/@types/core-js/index.d.ts(356,52): error TS2304: Cannot find name 'PropertyKey'.
node_modules/@types/core-js/index.d.ts(357,34): error TS2304: Cannot find name 'PropertyKey'.
node_modules/@types/core-js/index.d.ts(358,34): error TS2304: Cannot find name 'PropertyKey'.
node_modules/@types/core-js/index.d.ts(359,34): error TS2304: Cannot find name 'PropertyKey'.
node_modules/@types/core-js/index.d.ts(360,61): error TS2304: Cannot find name 'PropertyKey'.
node_modules/@types/core-js/index.d.ts(361,60): error TS2304: Cannot find name 'PropertyKey'.
node_modules/@types/core-js/index.d.ts(362,65): error TS2304: Cannot find name 'PropertyKey'.
node_modules/@types/core-js/index.d.ts(362,97): error TS2304: Cannot find name 'PropertyKey'.
node_modules/@types/core-js/index.d.ts(363,60): error TS2304: Cannot find name 'PropertyKey'.
...
Note that using this component in Angular only app it works.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6
Top Results From Across the Web
Angular 2 npm install error packages - Stack Overflow
I had the same problem. After couple of hours, I've realized that @types/core-js makes the problem. Change it in package.json to version:
Read more >webpack-dev-server - npm
Start using webpack-dev-server in your project by running `npm i ... overlay in the browser when there are compiler errors or warnings.
Read more >Using TypeScript or ES6 – amCharts 4 Documentation
amCharts 4 npm install brings pre-compiled modules. The main required module core contains all the core functionality. You need it to instantiate the...
Read more >angular/angular - Gitter
step: name: production build caches: - npm - cypress script: - npm -v && node ... And like always there could be 100...
Read more >Error on npm run build - Stack Overflow
Error on npm run build. Updating the node-modules or clearing the cache didn't work. Updating the scripts even didn't work.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I solved this by changing the electron:tsc script to:
"electron:tsc": "tsc --typeRoots [\"node_modules/@types\"] main.ts"
Have a look at the latest package.json: It now uses the
-p
flag oftsc
which allows using a tsconfig.json. Works pretty well for me.