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
require() of ES Module *project_path*/node/node_modules/@extractus/article-extractor/src/main.js from *controller_name* not supported.\nInstead change the require of main.js in *controller-name* to a dynamic import() which is available in all CommonJS modules.
I've tried connecting this thing in various ways:
As in doc: import {extract} from "@extractus/article-extractor"
@ivkoandrv there is an example that works with Node.js / Typescript. I found that the most difference is module in TS config file. Could you try to change from "commonjs" to "es6"?
@ivkoandrv please try to run the example in your own environment to see if it works as expected. Then replace your project tsconfig file with the example config to verify if it's really the cause.
I've encountered following error:
require() of ES Module *project_path*/node/node_modules/@extractus/article-extractor/src/main.js from *controller_name* not supported.\nInstead change the require of main.js in *controller-name* to a dynamic import() which is available in all CommonJS modules.
I've tried connecting this thing in various ways:
import {extract} from "@extractus/article-extractor"
But, when I try it on the same, but the JS project - it works (I've use 1st method)
Node: 20
TS Config:
Help me, please, it's quite important
The text was updated successfully, but these errors were encountered: