Coder Social home page Coder Social logo

Comments (10)

txchen avatar txchen commented on July 18, 2024

@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.

kevinroisin avatar kevinroisin commented on July 18, 2024

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.

txchen avatar txchen commented on July 18, 2024

@kevinroisin I just did a git clean -fxd, and I can repro it. Looking into it.

from feplay.

kevinroisin avatar kevinroisin commented on July 18, 2024

@txchen wow, thank you for the fast response!

from feplay.

txchen avatar txchen commented on July 18, 2024

It might be related to riot/compiler#73

from feplay.

kevinroisin avatar kevinroisin commented on July 18, 2024

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.

txchen avatar txchen commented on July 18, 2024

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.

kevinroisin avatar kevinroisin commented on July 18, 2024

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.

txchen avatar txchen commented on July 18, 2024

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.

kevinroisin avatar kevinroisin commented on July 18, 2024

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)

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.