ReferenceError: DateTime is not defined #4639
-
I am having trouble with adonisjs build process. For some reason it doesn't import DateTime from Luxon. In most models DateTime import is completely missing. So when I run built server it crashs on seeders.
I made it work manually importing Which was 13 of 15, 1 does not use DateTime and the other have the import from build, all the others haven't. All my seeders using this models broke too. This are my dependencies
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey @25Das! 👋🏻 You are using a version of TypeScript that does not work with AdonisJS. Please downgrade to TypeScript 5.4. We tweeted and informed people on our Discord server about this issue. You can follow this issue to know when it's going to be fixed: microsoft/TypeScript#59051 |
Beta Was this translation helpful? Give feedback.
Hey @25Das! 👋🏻
You are using a version of TypeScript that does not work with AdonisJS. Please downgrade to TypeScript 5.4.
We tweeted and informed people on our Discord server about this issue.
You can follow this issue to know when it's going to be fixed: microsoft/TypeScript#59051