json-edit-react icon indicating copy to clipboard operation
json-edit-react copied to clipboard

Cannot use import statement outside a module

Open bakikucukcakiroglu opened this issue 7 months ago • 2 comments

Cannot use import statement outside a module
    at wrapSafe (node:internal/modules/cjs/loader:1281:20)
    at Module._compile (node:internal/modules/cjs/loader:1321:27)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
    at Module.load (node:internal/modules/cjs/loader:1208:32)
    at Function.Module._load (node:internal/modules/cjs/loader:1024:12)
    at cjsLoader (node:internal/modules/esm/translators:348:17)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:297:7)
    at ModuleJob.run (node:internal/modules/esm/module_job:222:25)
    at ModuleLoader.import (node:internal/modules/esm/loader:316:24)
    at nodeImport (file:///Users/bakikucukcakiroglu/Workspace/lookfor/frontend/node_modules/vite/dist/node/chunks/dep-Dyl6b77n.js:53065:15

Got this error in my Remix.js app. Any idea?

"json-edit-react": "^1.26.2"

bakikucukcakiroglu avatar May 31 '25 23:05 bakikucukcakiroglu

Here are some things that might help resolve the problem: https://chatgpt.com/share/683e4832-9b60-8009-819b-1856c67659a8

Let me know if you can't get it working using those suggestions.

CarlosNZ avatar Jun 03 '25 01:06 CarlosNZ

Any joy @bakikucukcakiroglu ?

If you're still having trouble, please share a repo that has this problem and I'll look into it.

CarlosNZ avatar Jun 08 '25 00:06 CarlosNZ