-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue importing from nodejs / typescript backend #607
Comments
I also get this error |
Try set |
Still doesn't work @cctv1005s . |
very annoying :( same problem, if i change type to module i get: module.exports = require("@nestjs/core"); How do we fix it? |
Maybe its export in package.json meteor/meteor#11727 (comment) |
I got the error too. |
This has been a way to make it work on Electron's backend:
but it only works in development, on a built project I get this:
Any ideas? |
Verify latest release
chatgpt
releaseVerify webapp is working
Environment details
Describe the Bug
Importing the chatGPT module does not work. It thoughts the error below.
reproducable:
Error:
@nx/js/src/executors/node/node-with-require-overrides.js:18
return originalLoader.apply(this, arguments);
Error [ERR_REQUIRE_ESM]: require() of ES Module node_modules/chatgpt/build/index.js from brain-api/main.js not supported.
Instead change the require of index.js in apps/brain-api/main.js to a dynamic import() which is available in all CommonJS modules.
at Module._load (node_modules/@nx/js/src/executors/node/node-with-require-overrides.js:18:31)
at Object.defineProperty.value (react/dist/apps/brain-api/main.js:794:18)
at webpack_require (dist/apps/brain-api/ma
...
The text was updated successfully, but these errors were encountered: