Multiples Errors in main.d.ts
See original GitHub issueHi,
I would like to use ts-simple-ast
in an Angular projet. When I serve my program with ts-simple-ast
imported I’ve got a bunch (around 40) of errors in main.d.ts that make the compilation fails.
Like:
node_modules/ts-simple-ast/dist/main.d.ts(3805,206): error TS1005: ';' expected.
All the errors are in lines 3805 and 4433, and all about missing “;”, “(” and “)”.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Visual Studio 2015 - errors on *.d.ts files in node_modules folder
Here's a sample of some of the errors I'm seeing in the file node_modules\@angular\common\src\directives\ng_class.d.ts:.
Read more >Multiple errors from common/params when build with Typescript
Multiple similar errors from same folder: node_modules/firebase-functions/lib/common/params.d.ts:21:164 - error TS1005: ';' expected.
Read more >multiple typescript errors in kendo-ui.d.ts - Telerik
After updating my project I get several errors about kendo-ui.d.ts. Typescript version 2.5. e.g..
Read more >Documentation - Modules .d.ts - TypeScript
Comparing JavaScript to an example DTS. Common CommonJS Patterns. A module using CommonJS patterns uses module.exports to describe the exported values.
Read more >TypeScript errors and how to fix them
A list of common TypeScript errors and how to fix them.
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 was having this issue with the angular client, this is the postinstall script that worked for me, if anyone else runs into this:
and in the package.json:
Just as a FYI though, I wasn’t able to get it running on the browser. I unfortunately decided to change my API for now, and run it server-side.
Here are the current errors I’m facing, for reference (I manually replaced the actual folder for the
{{project_folder}}
):