Comments (10)
@gregbenner I cannot repro this. Would you please try purge and npm install again?
I am using node 6.2, npm 3.8.9
from feplay.
I believe I am hitting this same error:
ERROR in ./src/view/detail-view.html
Module build failed: Error: TypeError: unknown: resolveModuleSource is not a function
at Object.module.exports (/Users/kevin/Code/riotjs/feplay/riot_webpack_async/node_modules/riotjs-loader/index.js:32:11)
@ ./src/riotTags.js 9:0-34
webpack: bundle is now VALID.
^C
~/Code/riotjs/feplay/riot_webpack_async on gh-pages ? node -v
v6.2.2
~/Code/riotjs/feplay/riot_webpack_async on gh-pages ? npm -v
3.9.5
from feplay.
@kevinroisin I just did a git clean -fxd, and I can repro it. Looking into it.
from feplay.
@txchen wow, thank you for the fast response!
from feplay.
It might be related to riot/compiler#73
from feplay.
That makes sense, as if I switch to the require
style of importing, it works:
import stores from '../stores'
to var stores = require('../stores')
from feplay.
Let me try to upgrade all packages and use webpack 6.
In fact, I am now using vuejs for my projects since they maintain much better scaffolding template via vue-cli. webpack is really hard to config, man :)
from feplay.
I was comfortable with Angular, but Angular2 seemed like serious overkill to me for small projects so I was looking for something smaller. RIOT looks minimal, so I'm testing it out. But that said, Vue.js does look pretty slick and not tremendously bulky.
Can't catch them all!
from feplay.
I think it is now fixed, just upgrade everything to latest.
My own experience is: vue is much much more stable, you will not spend a lot of time dealing with issues like this issue, the tooling support it really better than riot.
It is said with webpack 2's tree shaking + vue 2, the footprint will be smaller. Now I think the size of vue is not a big issue, because it is still much smaller than angular/react. Yes it is larger than riot, but it offers more useful features. Worth taking a look :)
from feplay.
And it's fixed. Thank you!
I'll spend some more time on looking into vuejs. Your examples for riot have been really helpful, so if you like vuejs more it's probably worth diving into.
from feplay.
Related Issues (9)
- 你是**人吗,一起交流下,我也在研究 riot.js HOT 1
- TodoMVC, routing is not working HOT 1
- riot_vue, gridcomponent is not working correctly HOT 1
- Post to tastejs/todomvc HOT 5
- Perceivable lag when typing into input/textarea HOT 1
- Link to tacit stylesheet is broken HOT 2
- Disable callbacks when unmounting tags HOT 3
- Update riot_vue
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 feplay.