Skip to content
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

problem trying to load in ESM , ( Remix JS App ) #1

Open
lambdaxyzt opened this issue Dec 13, 2023 · 2 comments
Open

problem trying to load in ESM , ( Remix JS App ) #1

lambdaxyzt opened this issue Dec 13, 2023 · 2 comments

Comments

@lambdaxyzt
Copy link

Hi, tnx for awesome library
a tiny problem with your package when I want to use it in ESM syntax in Remix App

(node:24696) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
C:\Users\Lambdaxyzt\Downloads\Project-Main\VPN\software\front-user\node_modules\.pnpm\[email protected]\node_modules\cleave-zen\dist\cleave-zen.module.js:1
.......
SyntaxError: Unexpected token 'export'
    at internalCompileFunction (node:internal/vm:73:18)
    at wrapSafe (node:internal/modules/cjs/loader:1178:20)
    at Module._compile (node:internal/modules/cjs/loader:1220:27)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
    at Module.load (node:internal/modules/cjs/loader:1119:32)
    at Function.Module._load (node:internal/modules/cjs/loader:960:12)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:169:29)
    at ModuleJob.run (node:internal/modules/esm/module_job:194:25)

but I have "type":"module" in root package.json file

@nosir
Copy link
Owner

nosir commented Dec 16, 2023

Thanks, I will setup Remix App and try to reproduce this

@jjjrmy
Copy link

jjjrmy commented Dec 21, 2023

Same issue #6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants