Giter Club home page Giter Club logo

Comments (5)

jbruni avatar jbruni commented on May 8, 2024

If you do exactly the same steps above, but instead of using the latest vue-webpack-template, you use a past version, it will work. As I have done a tiny pull request recently, GitHub automatically created a fork. The master branch of my fork "is 16 commits behind vuejs-templates:master" at this moment. So, in the "steps to reproduce" above, you can simply change vue init call to:

$ vue init jbruni/webpack my-project

Performing the exact same steps, this is the successfull result:

> my-project@ build /home/jbruni/TT/boo/my-project
> rimraf dist && webpack --progress --hide-modules --config build/webpack.prod.conf.js

Hash: b08bd5b8691a16fbc7a1  
Version: webpack 1.12.13
Time: 4838ms
                                       Asset       Size  Chunks             Chunk Names
                 app.98c111ddf2117c6910d3.js    83.6 kB       0  [emitted]  app
    app.6b590370d011a33cd6d0437256238024.css  106 bytes       0  [emitted]  app
             app.98c111ddf2117c6910d3.js.map     656 kB       0  [emitted]  app
app.6b590370d011a33cd6d0437256238024.css.map  303 bytes       0  [emitted]  app
                               ../index.html  290 bytes          [emitted]  
Child extract-text-webpack-plugin:

from webpack.

jbruni avatar jbruni commented on May 8, 2024

Hey... I just found that if I remove the preLoaders from webpack.base.conf.js, the result is successful.

And if I add !eslint back to the loaders, I get the linting back, up & running, and the result is also successful.

      {
        test: /\.vue$/,
        loader: 'vue!eslint'
      },
      {
        test: /\.js$/,
        loader: 'babel!eslint',
        exclude: /node_modules/
      },

So, the issue is related to linting in the "preLoader" phase.

I've read the rationale at http://vuejs.github.io/vue-loader/workflow/linting.html, but I will revert bab75ff in my project until this is resolved.

Thank you.

from webpack.

yyx990803 avatar yyx990803 commented on May 8, 2024

Thanks for the detailed report. So after investigation, this is actually caused by ESLint/espree monkey-patching Acorn (which is in turn depended by Jade)... it has already been fixed in espree and should expect a new patch release any time: eslint/espree#250

from webpack.

yyx990803 avatar yyx990803 commented on May 8, 2024

[email protected] is out, update your eslint and it should work :)

from webpack.

jbruni avatar jbruni commented on May 8, 2024

Indeed. It works now. Great! Thanks.

Meanwhile, I've faced another (unrelated) issue, which made me remove "plugins": ["transform-runtime"] from .babelrc (at least temporarily, while they don't fix it): https://phabricator.babeljs.io/T7127

from webpack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.