LoginSignup
2
0

More than 5 years have passed since last update.

RiotGear を require() すると "riot is not defined" になる

Posted at
app.js
var riot = require('riot');
require('riotgear');
require('./app.tag');

riot.mount('app');

browserrify

browserify -t [ riotify ] ./src/app.js > ./src/build/bundle.js

結果

bundle.js:2673 Uncaught ReferenceError: riot is not defined

なんで><

2
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0