Closed AvidDabbler closed 1 month ago
Can you add
"type": "module"
to the package.json file? https://stackoverflow.com/a/69089164/363155
Check out this small test project I made that just importing gtfs-to-html:
https://github.com/BlinkTagInc/gtfs-to-html-test
I think the key is using "type": "module" in the package.json file.
Type module has been added to the project 😬
Did that work?
On Wed, Jul 17, 2024 at 17:08 Walter Jenkins @.***> wrote:
Type module has been added to the project 😬
— Reply to this email directly, view it on GitHub https://github.com/BlinkTagInc/gtfs-to-html/issues/166#issuecomment-2234834396, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAXPWKQMDEYW4XXLR5NXI3ZM4BQ5AVCNFSM6AAAAABLBL45TWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZUHAZTIMZZGY . You are receiving this because you commented.Message ID: @.***>
it did not. all messages and code above were run with the type set to module
Ah - in your tsconfig.json try changing "module": "CommonJS"
to "module": "nodenext"
and see if that works.
I am working with gtfs-to-html and it is causing some issues in my project. Currently I am getting this error when running it in https://github.com/ioTransit/simple-transit-site
error with import
tsconfig
with dynamic import