question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error @types/core-js at compiling, npm start

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:6

github_iconTop GitHub Comments

7reactions
mtsunucommented, Jul 27, 2018

I solved this by changing the electron:tsc script to:

"electron:tsc": "tsc --typeRoots [\"node_modules/@types\"] main.ts"

1reaction
fuerstcommented, Sep 25, 2018

Have a look at the latest package.json: It now uses the -p flag of tsc which allows using a tsconfig.json. Works pretty well for me.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found