You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ES-Module Issue: I get the error Must use import to load ES Module, because Nestia tries to load the nestia.config.ts file as a CommonJS? module, but it's written as an ES module due to the import syntax.
Unexpected 'export' token: When I try to dynamically import the file using ES module syntax, I get the error: SyntaxError: Unexpected token 'export'.
I have also tried adding/removing "type": "module" from the package.json, but then I run into additional issues with handling import/export syntax in the configuration file.
Could you provide guidance on how to correctly set up and use Nestia SDK in an Nx-based monorepo? Any help or examples would be greatly appreciated!
Hello,
I am trying to integrate Nestia SDK into an Nx monorepo setup, but I am encountering difficulties in configuring it properly.
Specifically, I created a nestia.config.ts file with the following content:
However, when I try to run the command:
npx nestia sdk
I encounter the following issues:
Must use import to load ES Module
, because Nestia tries to load the nestia.config.ts file as a CommonJS? module, but it's written as an ES module due to the import syntax.SyntaxError: Unexpected token 'export'.
"type": "module"
from the package.json, but then I run into additional issues with handling import/export syntax in the configuration file.Could you provide guidance on how to correctly set up and use Nestia SDK in an Nx-based monorepo? Any help or examples would be greatly appreciated!
Here is an example repository with a similar setup what im using: https://github.com/JeyP90/nx-nestia-angular-test
Thanks in advance!
The text was updated successfully, but these errors were encountered: