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

Vue cli: ESLint errors when using symlinks #5

Open
timtnleeProject opened this issue Sep 30, 2020 · 0 comments
Open

Vue cli: ESLint errors when using symlinks #5

timtnleeProject opened this issue Sep 30, 2020 · 0 comments

Comments

@timtnleeProject
Copy link
Collaborator

timtnleeProject commented Sep 30, 2020

When using npm link or yarn link to develop local package, it will get error:
vuejs/vue-cli#5275

solution

Add configureWebpack to your vue.config.js

configureWebpack: {
  resolve: {
    symlinks: false // 使用npm link
  }
}

Webpack resolve

https://webpack.js.org/configuration/resolve/#resolvesymlinks

good knowing about resolve:
https://survivejs.com/webpack/techniques/consuming/

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

1 participant