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

"No ESLint configuration found." when using yarn link #2793

Closed
c0defre4k opened this issue Oct 23, 2018 · 4 comments
Closed

"No ESLint configuration found." when using yarn link #2793

c0defre4k opened this issue Oct 23, 2018 · 4 comments

Comments

@c0defre4k
Copy link

c0defre4k commented Oct 23, 2018

What problem does this feature solve?

When using a yarn linked package it breaks the build process.
This behavour has been changed multiple times between 3.0.0-beta and 3.0.5. See here #1559

I think it would help people a lot if there was some hint in the Vue-CLI docs.

What does the proposed API look like?

Give a hint in the docs to add this snippet to your vue.config.js when using yarn link.

chainWebpack: (config, ...rest) => {
    config.resolve.set('symlinks', false)
}
@diachedelic
Copy link

When using the above config (and using yarn link) I get no compile errors, but I get a runtime error and blank page:

es6.regexp.match.js?b6b1:2 Uncaught TypeError: __webpack_require__(...) is not a function
    at eval (es6.regexp.match.js?b6b1:2)
    at Object../node_modules/@xxx/vue-shared/node_modules/core-js/modules/es6.regexp.match.js (app.js:6822)
    at __webpack_require__ (app.js:725)
    at fn (app.js:102)
    at eval (es6.function.name.js:3)
    at Object../node_modules/@xxx/vue-shared/node_modules/core-js/modules/es6.function.name.js (app.js:6654)
    at __webpack_require__ (app.js:725)
    at fn (app.js:102)
    at eval (_export.js:3)
    at Object../node_modules/@xxx/vue-shared/node_modules/core-js/modules/_export.js (app.js:5694)
    at __webpack_require__ (app.js:725)
    at fn (app.js:102)
    at eval (es6.object.set-prototype-of.js?848f:2)
    at Object../node_modules/@xxx/vue-shared/node_modules/core-js/modules/es6.object.set-prototype-of.js (app.js:6762)
    at __webpack_require__ (app.js:725)
    at fn (app.js:102)
    at eval (_set-proto.js:3)
    at Object../node_modules/@xxx/vue-shared/node_modules/core-js/modules/_set-proto.js (app.js:6246)
    at __webpack_require__ (app.js:725)
    at fn (app.js:102)
    at eval (_inherit-if-required.js?15ce:2)
    at Object../node_modules/@xxx/vue-shared/node_modules/core-js/modules/_inherit-if-required.js (app.js:5814)
    at __webpack_require__ (app.js:725)
    at fn (app.js:102)
    at eval (es6.regexp.constructor.js?9c76:2)
    at Object../node_modules/@xxx/vue-shared/node_modules/core-js/modules/es6.regexp.constructor.js (app.js:6798)
    at __webpack_require__ (app.js:725)
    at fn (app.js:102)
    at eval (_fix-re-wks.js?883b:2)
    at Object../node_modules/@xxx/vue-shared/node_modules/core-js/modules/_fix-re-wks.js (app.js:5718)
    at __webpack_require__ (app.js:725)
    at fn (app.js:102)
    at eval (es6.regexp.replace.js?c18d:2)
    at Object../node_modules/@xxx/vue-shared/node_modules/core-js/modules/es6.regexp.replace.js (app.js:6834)
    at __webpack_require__ (app.js:725)
    at fn (app.js:102)
    at eval (es6.regexp.split.js:3)
    at Object../node_modules/@xxx/vue-shared/node_modules/core-js/modules/es6.regexp.split.js (app.js:6858)
    at __webpack_require__ (app.js:725)
    at fn (app.js:102)
    at eval (es6.number.constructor.js?aca7:2)
    at Object../node_modules/@xxx/vue-shared/node_modules/core-js/modules/es6.number.constructor.js (app.js:6678)
    at __webpack_require__ (app.js:725)
    at fn (app.js:102)
    at Object.eval (vue.runtime.esm.js:10)
    at eval (vue.runtime.esm.js:8032)
    at Object../node_modules/@xxx/vue-shared/node_modules/vue/dist/vue.runtime.esm.js (app.js:7734)
    at __webpack_require__ (app.js:725)
    at fn (app.js:102)
    at eval (Error.vue?8d11:21)
    at Module../node_modules/@xxx/vue-shared/src/icons/Error.vue (app.js:8166)
    at __webpack_require__ (app.js:725)
    at fn (app.js:102)
    at eval (PageLoadError.vue?5578:21)
    at Object../node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/PageLoadError.vue?vue&type=script&lang=js& (app.js:10970)
    at __webpack_require__ (app.js:725)
    at fn (app.js:102)
    at eval (PageLoadError.vue?9ed5:1)
    at Module../src/PageLoadError.vue?vue&type=script&lang=js& (app.js:17466)
    at __webpack_require__ (app.js:725)
    at fn (app.js:102)
    at eval (PageLoadError.vue?d01e:1)
    at Module../src/PageLoadError.vue (app.js:17454)
    at __webpack_require__ (app.js:725)
    at fn (app.js:102)
    at eval (App.vue?234e:72)
    at Object../node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/App.vue?vue&type=script&lang=js& (app.js:10946)
    at __webpack_require__ (app.js:725)
    at fn (app.js:102)
    at eval (App.vue?f5eb:1)
    at Module../src/App.vue?vue&type=script&lang=js& (app.js:17286)
    at __webpack_require__ (app.js:725)
    at fn (app.js:102)
    at eval (App.vue?180a:1)
    at Module../src/App.vue (app.js:17274)
    at __webpack_require__ (app.js:725)
    at fn (app.js:102)
    at eval (main.js?56d7:3)
    at Object../src/main.js (app.js:19470)
    at __webpack_require__ (app.js:725)
    at fn (app.js:102)
    at Object.0 (app.js:19519)
    at __webpack_require__ (app.js:725)
    at app.js:792
    at app.js:795

@diachedelic
Copy link

@diachedelic
Copy link

I fixed the above runtime error by deleting node_modules from a few packages i was yarn linking, in case anyone else has that issue. So glad to use yarn link again!

@coreycoburn
Copy link

What problem does this feature solve?

When using a yarn linked package it breaks the build process.
This behavour has been changed multiple times between 3.0.0-beta and 3.0.5. See here #1559

I think it would help people a lot if there was some hint in the Vue-CLI docs.

What does the proposed API look like?

Give a hint in the docs to add this snippet to your vue.config.js when using yarn link.

chainWebpack: (config, ...rest) => {
    config.resolve.set('symlinks', false)
}

Thank you @c0defre4k ! Helped me greatly! And if you are using Nuxt:

config.resolve.symlinks = false

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

No branches or pull requests

5 participants