kush.dev
Error in Accessing Import that is working fine in node.js.
thanks for answering friend, But I know this, but this way works in node.js, and I'm indeed using --unstable-sloppy-imports, in deno run.
detail analysis:
/node_modules/@mui/material/styles$ ls | grep -E "index|package"
index.d.ts
index.js
package.json
/node_modules/@mui/material/styles$ cat package.json
{
"sideEffects": false,
"module": "./index.js",
"main": "../node/styles/index.js",
"types": "./index.d.ts"
}
--------------------
As you can see the directory have an index.js and even a package.json that specify the main file, And in node.js I didn't have to specify the fileName, My code base is very large, and I want it to run as it run in node, without changing any file.
5 replies