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

Fresh install 'npm run dev' #39

Closed
awcodes opened this issue Jun 19, 2020 · 2 comments
Closed

Fresh install 'npm run dev' #39

awcodes opened this issue Jun 19, 2020 · 2 comments
Labels
question Further information is requested

Comments

@awcodes
Copy link

awcodes commented Jun 19, 2020

Just tried a fresh install with the present and am encountering the following error upon 'npm run dev'

Never encountered this before. I have installed the preset several times successfully.

Any help would be greatly appreciated. :)

Seems like it might be a webpack issue. Not sure.

Error: Package exports for '/Users/[redacted]/Dev/DisclosuresReader/node_modules/kleur' do not define a valid './colors' target

full error:
Error: Package exports for '/Users/[redacted]/Dev/DisclosuresReader/node_modules/kleur' do not define a valid './colors' target
at resolveExportsTarget (internal/modules/cjs/loader.js:607:9)
at applyExports (internal/modules/cjs/loader.js:492:14)
at resolveExports (internal/modules/cjs/loader.js:541:12)
at Function.Module._findPath (internal/modules/cjs/loader.js:643:22)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:941:27)
at Function.Module._load (internal/modules/cjs/loader.js:847:27)
at Module.require (internal/modules/cjs/loader.js:1016:19)
at require (/Users/[redacted]/Dev/DisclosuresReader/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
at Object. (/Users/[redacted]/Dev/DisclosuresReader/node_modules/autoprefixer/lib/autoprefixer.js:9:13)
at Module._compile (/Users/[redacted]/Dev/DisclosuresReader/node_modules/v8-compile-cache/v8-compile-cache.js:194:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1160:10)
at Module.load (internal/modules/cjs/loader.js:976:32)
at Function.Module._load (internal/modules/cjs/loader.js:884:14)
at Module.require (internal/modules/cjs/loader.js:1016:19)
at require (/Users/[redacted]/Dev/DisclosuresReader/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
at /Users/[redacted]/Dev/DisclosuresReader/node_modules/laravel-mix/src/components/Preprocessor.js:62:41
at /Users/[redacted]/Dev/DisclosuresReader/node_modules/laravel-mix/src/components/Preprocessor.js:69:31
at global.tap (/Users/[redacted]/Dev/DisclosuresReader/node_modules/laravel-mix/src/helpers.js:10:5)
at /Users/[redacted]/Dev/DisclosuresReader/node_modules/laravel-mix/src/components/Preprocessor.js:27:13
at Array.forEach ()
at Sass.webpackRules (/Users/[redacted]/Dev/DisclosuresReader/node_modules/laravel-mix/src/components/Preprocessor.js:22:22)
at ComponentFactory.applyRules (/Users/[redacted]/Dev/DisclosuresReader/node_modules/laravel-mix/src/components/ComponentFactory.js:155:23)
at /Users/[redacted]/Dev/DisclosuresReader/node_modules/laravel-mix/src/components/ComponentFactory.js:66:48
at /Users/[redacted]/Dev/DisclosuresReader/node_modules/laravel-mix/src/Dispatcher.js:34:47
at Array.forEach ()
at Dispatcher.fire (/Users/[redacted]/Dev/DisclosuresReader/node_modules/laravel-mix/src/Dispatcher.js:34:28)
at Mix.dispatch (/Users/[redacted]/Dev/DisclosuresReader/node_modules/laravel-mix/src/Mix.js:118:25)
at WebpackConfig.buildRules (/Users/[redacted]/Dev/DisclosuresReader/node_modules/laravel-mix/src/builder/WebpackConfig.js:90:13)
at WebpackConfig.build (/Users/[redacted]/Dev/DisclosuresReader/node_modules/laravel-mix/src/builder/WebpackConfig.js:23:14)
at Object. (/Users/[redacted]/Dev/DisclosuresReader/node_modules/laravel-mix/setup/webpack.config.js:29:38)
at Module._compile (/Users/[redacted]/Dev/DisclosuresReader/node_modules/v8-compile-cache/v8-compile-cache.js:194:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1160:10)
at Module.load (internal/modules/cjs/loader.js:976:32)
at Function.Module._load (internal/modules/cjs/loader.js:884:14)
at Module.require (internal/modules/cjs/loader.js:1016:19)
at require (/Users/[redacted]/Dev/DisclosuresReader/node_modules/v8-compile-cache/v8-compile-cache.js:161:20) {
code: 'MODULE_NOT_FOUND'

@PatrickJoannisse
Copy link

Had the same issue. Updating Node did the trick.

lukeed/kleur#32

@danharrin
Copy link
Member

Thanks, @PatrickJoannisse!

@danharrin danharrin added the question Further information is requested label Jun 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants