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

module not found with npm #193

Open
surrealroad opened this issue Jan 4, 2025 · 0 comments
Open

module not found with npm #193

surrealroad opened this issue Jan 4, 2025 · 0 comments

Comments

@surrealroad
Copy link

I can't get this to load with npm

I did:
npm i color-elements
Then in my file:

<script>
import { ColorPicker } from 'color-elements';
</script>
<ColorPicker space="oklch" color="oklch(60% 30% 180)"></ColorPicker>

I keep getting error:

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/jack/Development/app/node_modules/color-elements/node_modules/nude-element/src/Element.js' imported from /Users/jack/Development/app/node_modules/color-elements/src/color-picker/color-picker.js
    at finalizeResolution (node:internal/modules/esm/resolve:260:11)
    at moduleResolve (node:internal/modules/esm/resolve:921:10)
    at defaultResolve (node:internal/modules/esm/resolve:1132:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:557:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:526:25)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:249:38)
    at ModuleJob._link (node:internal/modules/esm/module_job:126:49) {
  code: 'ERR_MODULE_NOT_FOUND',
  url: 'file:///Users/jack/Development/app/node_modules/color-elements/node_modules/nude-element/src/Element.js'

Any help would be appreciated

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

1 participant