Webpack: AirBNB linter results in "Unable to resolve path to module" errors for Vue files

Created on 30 May 2016  路  5Comments  路  Source: vuejs-templates/webpack

When i run
vue-error
and then

cd test
npm install
npm run dev

I have the following issues
vue-error2

I think they come from f9f69e1eb44fcf487d2b20216982c4a744ecbe8a, i made the same before this commit without errors and it's happen when i select AirBNB linter.

node 6.2.0
npm 3.8.9
Debian Jessie

discussion

Most helpful comment

All 5 comments

I get the same. Template with airbnb profile is broken :(

This seems like a bug in airbnb/javascript, since Webpack is indeed able to resolve the path to the module. What would be the ideal solution for users of this linting config? A few ideas:

  • Specifically disable that rule in .eslintrc.js
  • Add .vue to those import statements, which may fix the problem
  • File an issue in the linting config so they can work better with Webpack

+1 ... Not really understand your guide @chrisvfritz? I'm assuming you mean there's an error in 'airbnb-base' which the .eslintrc.js extends?

In that case has someone opened an issue, and if so can we reference it here?

I've just disabled the rule, since Webpack will already let you know if a module can't be resolved. a5008e6d608093bd02cb1eb33b3e4f82ee31eae4

Was this page helpful?
0 / 5 - 0 ratings