Giter VIP home page Giter VIP logo

Comments (7)

davidrunger avatar davidrunger commented on May 13, 2024 14

FWIW, the error referenced in this issue's title is what I was getting simply because I hadn't run npm install --save vue-loader (and then I had to first manually install all of the peer dependencies, since I am using npm v3, and then retry npm install --save vue-loader and then it installed successfully and then my webpack bundle built successfully without the error).

It might be worth adding a reminder about actually installing the loader to the README.md, for slow folks like me... 😁

from vue-loader.

tilleps avatar tilleps commented on May 13, 2024 11

@davidrunger was my issue/resolution also. Thanks!

For anyone else that needs the list of the peer dependencies:

vue
vue-loader
vue-html-loader
css-loader
style-loader
babel-loader
babel-core
babel-plugin-transform-runtime
babel-preset-es2015
babel-runtime
vue-hot-reload-api

Or copy/paste version for your convenience:

npm install --save vue vue-loader vue-html-loader css-loader style-loader babel-loader babel-core babel-plugin-transform-runtime babel-preset-es2015 babel-runtime vue-hot-reload-api

(Without --save)

npm install vue vue-loader vue-html-loader css-loader style-loader babel-loader babel-core babel-plugin-transform-runtime babel-preset-es2015 babel-runtime vue-hot-reload-api

from vue-loader.

bradstewart avatar bradstewart commented on May 13, 2024

I'm seeing the same thing with custom components.

from vue-loader.

yyx990803 avatar yyx990803 commented on May 13, 2024

@bradstewart Are you exporting a constructor created by Vue.extend() instead of a plain object? If that's the case it should now work in 4.0.10.

from vue-loader.

bradstewart avatar bradstewart commented on May 13, 2024

@yyx990803 So I can't quite figure out why the error printed to the console was from require('component.vue'), the call stack led me back to Vue.use(VueRouter) which was the actual problem. After updatingvue-router and vue-loader, everything looks good. (I am only exporting plain objects though).

from vue-loader.

karol-f avatar karol-f commented on May 13, 2024

Removing node_modules and installing it again helped.

from vue-loader.

felixzhooou avatar felixzhooou commented on May 13, 2024

#409 is helped

from vue-loader.

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.