Comments (7)
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.
@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.
I'm seeing the same thing with custom components.
from vue-loader.
@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.
@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.
Removing node_modules and installing it again helped.
from vue-loader.
#409 is helped
from vue-loader.
Related Issues (20)
- Compiling RuleSet failed: Unexpected property test in condition HOT 1
- vue cli3 在打包到时候会把项目中没有使用的图片文件打包输出到dist目录。 HOT 1
- 同一页面有两个不同scopeid HOT 3
- 使用swc-loader替换babel报错 HOT 1
- Build error: Cannot read properties of null (reading 'lang') HOT 2
- v17.3 breaks v-bind HOT 2
- vue2 Upgrade vue3 vue-loader browser error message: Uncaught TypeError: Object(...) is not a function
- Error: Codegen node is missing for element/if/for node. HOT 1
- TypeError: Cannot read property 'compilation' of undefined HOT 1
- Scoped styles are not applied when loading Vue component via SystemJS
- Tricky Src Imports : no compile or hot-reload with version 17.4.2
- Importing plain component file from separate monorepo package results in wrong build
- const/let converto var HOT 1
- Custom blocks when using vite HOT 1
- about defineAsyncComponent function in Vue3, the path always wrong after webpack compiled
- TypeScript with noImplicitAny: true and SFC without script tag
- Vue3.0项目在CentOS上进行打包构建后,同一个单文件的组件里,子元素和父元素的data-v-hash值不一致,导致子元素的样式丢失
- comments not removed HOT 2
- 使用 module federation 时 如果 __file 路径相同 会引起热更混乱
- Could not compile Flowtype syntax
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-loader.