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
Error occured when I execute ts-node with file-url@4.0.0 as below:
Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /home/taehoon/Desktop/cinesopa-webapp/server/node_modules/file-url/index.js
require() of ES modules is not supported.
require() of /home/taehoon/Desktop/cinesopa-webapp/server/node_modules/file-url/index.js from /home/taehoon/Desktop/cinesopa-webapp/server/src/manager/file.ts is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules.
Instead rename index.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /home/taehoon/Desktop/cinesopa-webapp/server/node_modules/file-url/package.json.
When I was trying to test with mocha, something went wrong as well. So I guess other packages or my settings made no problems...
I don't have any error where it is file-url@3.0.0.
The text was updated successfully, but these errors were encountered:
Error occured when I execute ts-node with file-url@4.0.0 as below:
And this is my
tsconfig.json
.and what I executed command is:
When I was trying to test with mocha, something went wrong as well. So I guess other packages or my settings made no problems...
I don't have any error where it is file-url@3.0.0.
The text was updated successfully, but these errors were encountered: