Comments (5)
This occurred to me when I changed from laravel-elixir-vue to laravel-elixir-vue-2. My components props were not set. When I changed exports default to module.exports it works. Weirdly enough, on laravel-elixir-vue, exports default works just fine. 😞
from laravel-elixir-vue-2.
I think it's the same thing as in JeffreyWay/laravel-elixir-vue#10
For this to work this package would need to use babel loader for .js files and add "babel-plugin-add-module-exports" as dependency, although the current ES proposal is using "default" as in require('./components/Example.vue').default, or that's why I understand (not versed on node/js enviroment).
from laravel-elixir-vue-2.
@osiux Thanks for the response, will try and confirm the results later 👍
from laravel-elixir-vue-2.
Checking in to report that going from vue 1 to 2 after following the vue 1 laracasts, I had to change all my single file components to module.exports from exports default.
exports default no longer worked for me either; none of my properties came up defined.
from laravel-elixir-vue-2.
@osiux I can't seem to get that done lol ( I'm also not versed on node) 😆 . But what I can confirm is that after getting a fresh laravel 5.3, it works out of the box for me. Maybe this didn't work because there is an issue with migrating from vue 1 to vue 2. I can only assume that's the case because laravel 5.3 came with vue 2 support
from laravel-elixir-vue-2.
Related Issues (20)
- Failure to mount when extending elixir HOT 1
- Vue 2.0 and vue-loader 9.x
- Failed to mount component: template or render function not defined. HOT 7
- Hot Module Reload HOT 7
- Cannot compile *.vue modules with SCSS HOT 4
- Vue packages version mismatch HOT 5
- [Vue warn]: Failed to mount component: template or render function not defined HOT 1
- Vue and Babel HOT 1
- Module build failed with spread transformation HOT 3
- Failed to mount component: template or render function not defined HOT 1
- Vue warn after vue-template-compiler update to 2.1.1 HOT 2
- Style tag does not work HOT 1
- Problems with gulp --production
- Elixir.ready is not a function! HOT 3
- Extract scss problem HOT 1
- Support for generators functions
- Support Vue 2.3 HOT 3
- Webpack failing on running gulp
- Export Default Not Working
- Cannot read property 'mergeConfig' of undefined HOT 9
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 laravel-elixir-vue-2.