cannot seem to load tag file
thepian opened this issue · 3 comments
When I place a main file and a tag next to each other in a nested directory it doesn't seem to load.
[gulp] Running 'browserify'...
{ [Error: Cannot find module './swiper-nav.tag' from '.']
The gulp task loads any JS files in my _js folder and builds using babel+browserify
gulp.task('browserify', function() {
return gulp
.src(['site/js//*.js','!site//__.js','!.spec.js'])
// .pipe($.sourcemaps.init())
.pipe(createBundler("dev"))
//.pipe(gulpif(mode === "prod", uglify({mangle:false})));
// .pipe($.sourcemaps.write('.'))
.pipe($.rename(function(file) {
file.dirname = '.';
}))
If I react to the error message and treat the current directory as being the project root I get the following error
{ [Error: Cannot find module './site/_js/swiper-nav.tag' from '/Users/Shared/Projects/fluentglobe.github.io/site/_js']
If I import the tag as a module it works, that's strange
Pls focus on riotify
. No gulp
.
If this is a gulp
related issue, you need to show what createBundler
is, I think.
Closing this because of inactivity.