typescript-package | convenience library for generating typescript | Generator Utils library
kandi X-RAY | typescript-package Summary
kandi X-RAY | typescript-package Summary
TypeScript Package Library ==.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of typescript-package
typescript-package Key Features
typescript-package Examples and Code Snippets
Community Discussions
Trending Discussions on typescript-package
QUESTION
I followed this article to set up a TypeScript NPM package.
The first time I ran npm run build
(before install jest). It went really well. After that I installed jest
and then I ran npm run build
again, I’ve got a error message below:
tsc node_modules/@types/babel__template/index.d.ts:16:28 — error TS2583: Cannot find name ‘Set’. Do you need to change your target library? Try changing the
lib
compiler option to es2015 or later.16 placeholderWhitelist?: Set;
Found 1 error.
My node, npm, tsc version is: node -v // v8.12.0, npm -v // v6.4.1, tsc -v // v3.4.5
Here is tsconfig.json
...ANSWER
Answered 2019-Jul-16 at 12:43Try to add the "lib": ["es6"]
or higher and change the "target": "es6"
in the compilerOptions
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install typescript-package
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page