alberthaff / ngx-papaparse

Papa Parse wrapper for Angular
https://alberthaff.dk/projects/ngx-papaparse/docs/v8
MIT License
90 stars 19 forks source link

An accessor cannot be declared in an ambient context. #84

Closed carlosnp closed 1 year ago

carlosnp commented 3 years ago

Describe the bug

The compilation error occurs because there are some lines that typescript detects: An accessor cannot be declared in an ambient context.

The errors are in node_modules/ngx-papaparse/lib/papa.de.ts, in the lines:

To Reproduce

The error occurs when compiling the angular project

ng serve

Expected behavior

hope it compiles correctly, no errors

Software and platform

Additional context

Although it is not a good practice, the problem can be solved by adding to the tsconfig.ts file, in compilerOptions the line: "skipLibCheck": true, and now, TypeScript allows me to use the library as long as I do not use the incompatible parts or with

alberthaff commented 3 years ago

Thanks for reporting this! I'm leaving for vacation tomorrow, so I won't have time to look at this until I'm back.