A boiler plate template using Feathers with Email Verification, Vue 2 with Server Side Rendering, stylus, scss, jade, babel, webpack, ES 6-8, login form, user authorization, and SEO
MIT License
197
stars
48
forks
source link
pug is not a loader error, new routes not generating #14
npm run dev
> feathers-vue-two@0.0.0 dev /Users/jacc/Sites/feathersjs-projects/feathers-vue-template
> npm-run-all --parallel watch serve
> feathers-vue-two@0.0.0 watch /Users/jacc/Sites/feathersjs-projects/feathers-vue-template
> gulp && webpack -w
> feathers-vue-two@0.0.0 serve /Users/jacc/Sites/feathersjs-projects/feathers-vue-template
> nodemon --watch server --watch config server/
[nodemon] 1.12.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: /Users/jacc/Sites/feathersjs-projects/feathers-vue-template/server/**/* /Users/jacc/Sites/feathersjs-projects/feathers-vue-template/config/**/*
[nodemon] starting `node server/`
[03:41:16] Using gulpfile ~/Sites/feathersjs-projects/feathers-vue-template/gulpfile.js
[03:41:16] Starting 'default'...
[03:41:16] Starting 'inject-css'...
inject-css
[03:41:16] gulp-inject 1 file into app.styl.
[03:41:16] Finished 'inject-css' after 158 ms
[03:41:16] Starting 'inject-schemas'...
[03:41:16] gulp-inject 4 files into index.js.
[03:41:16] Finished 'inject-schemas' after 56 ms
[03:41:16] Starting 'inject-component-js'...
[03:41:16] gulp-inject Nothing to inject into index.js.
[03:41:16] Finished 'inject-component-js' after 13 ms
[03:41:16] Starting 'inject-vue'...
[03:41:16] gulp-inject 3 files into index.js.
[03:41:16] Finished 'inject-vue' after 19 ms
[03:41:16] Starting 'inject-views'...
[03:41:16] gulp-inject 3 files into routes.js.
[03:41:16] Finished 'inject-views' after 15 ms
[03:41:16] Starting 'inject-hooks'...
[03:41:16] gulp-inject 16 files into index.js.
[03:41:16] Finished 'inject-hooks' after 30 ms
[03:41:16] Starting 'globalize-vue-components'...
[nodemon] restarting due to changes...
[03:41:16] gulp-inject 6 files into index.js.
[03:41:16] Finished 'globalize-vue-components' after 148 ms
[03:41:16] Finished 'default' after 451 ms
[nodemon] starting `node server/`
You are using the default filter for the users service. For more information about event filters see https://docs.feathersjs.com/api/events.html#event-filtering
You are using the default filter for the settings service. For more information about event filters see https://docs.feathersjs.com/api/events.html#event-filtering
You are using the default filter for the roles service. For more information about event filters see https://docs.feathersjs.com/api/events.html#event-filtering
You are using the default filter for the message service. For more information about event filters see https://docs.feathersjs.com/api/events.html#event-filtering
Webpack is watching the files…
port 3030
[== ] 10% (building modules)info: Feathers application started on localhost:3030
mlab connected
(node:49229) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
[=== ] 15% (building modules)/Users/jacc/Sites/feathersjs-projects/feathers-vue-template/node_modules/loader-runner/lib/loadLoader.js:35
throw new Error("Module '" + loader.path + "' is not a loader (must have normal or pitch function)");
^
Error: Module '/Users/jacc/Sites/feathersjs-projects/feathers-vue-template/node_modules/pug/lib/index.js' is not a loader (must have normal or pitch function)
at loadLoader (/Users/jacc/Sites/feathersjs-projects/feathers-vue-template/node_modules/loader-runner/lib/loadLoader.js:35:10)
at iteratePitchingLoaders (/Users/jacc/Sites/feathersjs-projects/feathers-vue-template/node_modules/loader-runner/lib/LoaderRunner.js:169:2)
at iteratePitchingLoaders (/Users/jacc/Sites/feathersjs-projects/feathers-vue-template/node_modules/loader-runner/lib/LoaderRunner.js:165:10)
at /Users/jacc/Sites/feathersjs-projects/feathers-vue-template/node_modules/loader-runner/lib/LoaderRunner.js:173:18
at loadLoader (/Users/jacc/Sites/feathersjs-projects/feathers-vue-template/node_modules/loader-runner/lib/loadLoader.js:36:3)
at iteratePitchingLoaders (/Users/jacc/Sites/feathersjs-projects/feathers-vue-template/node_modules/loader-runner/lib/LoaderRunner.js:169:2)
at runLoaders (/Users/jacc/Sites/feathersjs-projects/feathers-vue-template/node_modules/loader-runner/lib/LoaderRunner.js:362:2)
at NormalModule.doBuild (/Users/jacc/Sites/feathersjs-projects/feathers-vue-template/node_modules/webpack/lib/NormalModule.js:182:3)
at NormalModule.build (/Users/jacc/Sites/feathersjs-projects/feathers-vue-template/node_modules/webpack/lib/NormalModule.js:275:15)
at Compilation.buildModule (/Users/jacc/Sites/feathersjs-projects/feathers-vue-template/node_modules/webpack/lib/Compilation.js:151:10)
at factoryCallback (/Users/jacc/Sites/feathersjs-projects/feathers-vue-template/node_modules/webpack/lib/Compilation.js:344:12)
at factory (/Users/jacc/Sites/feathersjs-projects/feathers-vue-template/node_modules/webpack/lib/NormalModuleFactory.js:241:5)
at applyPluginsAsyncWaterfall (/Users/jacc/Sites/feathersjs-projects/feathers-vue-template/node_modules/webpack/lib/NormalModuleFactory.js:94:13)
at /Users/jacc/Sites/feathersjs-projects/feathers-vue-template/node_modules/tapable/lib/Tapable.js:268:11
at NormalModuleFactory.params.normalModuleFactory.plugin (/Users/jacc/Sites/feathersjs-projects/feathers-vue-template/node_modules/webpack/lib/CompatibilityPlugin.js:52:5)
at NormalModuleFactory.applyPluginsAsyncWaterfall (/Users/jacc/Sites/feathersjs-projects/feathers-vue-template/node_modules/tapable/lib/Tapable.js:272:13)
at resolver (/Users/jacc/Sites/feathersjs-projects/feathers-vue-template/node_modules/webpack/lib/NormalModuleFactory.js:69:10)
at process.nextTick (/Users/jacc/Sites/feathersjs-projects/feathers-vue-template/node_modules/webpack/lib/NormalModuleFactory.js:194:7)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
I also was inspecting webpack.config.js trying to trace the root of the issue and see that the loaders only include folders.app but there are also .pug files in folders.server for the email templates.
I am not entirely sure if this is also why my main.js and ssr files are not generating on builds. I can tell they aren't because I've added new routes and they aren't showing there. If unrelated, happy to open up a second issue.
Sorry if I am getting any of this wrong - am new to feathers/vue.
hi, on a fresh install, it throws this error
I also was inspecting webpack.config.js trying to trace the root of the issue and see that the loaders only include folders.app but there are also .pug files in folders.server for the email templates.
I am not entirely sure if this is also why my main.js and ssr files are not generating on builds. I can tell they aren't because I've added new routes and they aren't showing there. If unrelated, happy to open up a second issue.
Sorry if I am getting any of this wrong - am new to feathers/vue.
Thanks for a great boilerplate!