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

solid-form-handler doesn't appear to be written in CJS, but also doesn't appear to be a valid ES module #1

Closed
docgecko opened this issue Nov 15, 2022 · 1 comment
Assignees
Labels
bug Something isn't working solved Issue solved.

Comments

@docgecko
Copy link

I have the following error in a astro/solidjs app:

solid-form-handler doesn't appear to be written in CJS, but also doesn't appear to be a valid ES module (i.e. it doesn't have "type": "module" or an .mjs extension for the entry point). Please contact the package author to fix. (x2)
(node:48442) 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)
 error   Cannot use import statement outside a module
/Users/docgecko/Code/floreer/floreer-astro-sanity/astro/node_modules/solid-form-handler/index.es.js:20
import { reach, ValidationError as ValidationError$1 } from "yup";
^^^^^^

SyntaxError: Cannot use import statement outside a module
    at wrapSafe (internal/modules/cjs/loader.js:1001:16)
    at Module._compile (internal/modules/cjs/loader.js:1049:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:12)
    at ModuleWrap.<anonymous> (internal/modules/esm/translators.js:199:29)
    at ModuleJob.run (internal/modules/esm/module_job.js:183:25)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async Loader.import (internal/modules/esm/loader.js:178:24)
@webblocksapp webblocksapp added the bug Something isn't working label Dec 6, 2022
@webblocksapp
Copy link
Owner

Fixed with release v1.0.0-alpha.6

@webblocksapp webblocksapp self-assigned this Jan 29, 2023
@webblocksapp webblocksapp added the solved Issue solved. label May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working solved Issue solved.
Projects
None yet
Development

No branches or pull requests

2 participants