Ty3uK / parcel-plugin-pug

Pug template support for Parcel bundler
MIT License
46 stars 6 forks source link

Unexpected identifier async loadIfNeeded #3

Closed Andrew-Dyachenko closed 6 years ago

Andrew-Dyachenko commented 6 years ago

Fresh project and not working... =(

Error: img-2018-01-12-14-29-10

`andrew@andrew-ThinkPad-Edge-E545:/var/www/optimum-house$ parcel index.pug Server running at http://localhost:1234 🚨 Unexpected identifier async loadIfNeeded() { ^^^^^^^^^^^^

SyntaxError: Unexpected identifier at NativeCompileCache._moduleCompile (/usr/lib/node_modules/parcel-bundler/node_modules/v8-compile-cache/v8-compile-cache.js:226:18) at Module._compile (/usr/lib/node_modules/parcel-bundler/node_modules/v8-compile-cache/v8-compile-cache.js:172:36) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) at Module.require (module.js:497:17) at require (/usr/lib/node_modules/parcel-bundler/node_modules/v8-compile-cache/v8-compile-cache.js:159:20) at Object. (/var/www/optimum-house/node_modules/parcel-plugin-pug/build/PugAsset.js:4:15) at Module._compile (/usr/lib/node_modules/parcel-bundler/node_modules/v8-compile-cache/v8-compile-cache.js:178:30) `

Project tree: img-2018-01-12-14-45-15

Packages: img-2018-01-12-14-49-37

NodeJS + NPM versions: img-2018-01-12-14-51-58

Ty3uK commented 6 years ago

Yep, big mistake. I'll fix it soon, thanks!

Ty3uK commented 6 years ago

Fixed in https://github.com/Ty3uK/parcel-plugin-pug/commit/20e16e67c024443c48c56b92041c2fe8107f25c7. Version 0.2.3 is released. Thanks a lot!

Ty3uK commented 6 years ago

Totally fixed in version 0.2.4

Andrew-Dyachenko commented 6 years ago

Cool, now it works! 2018-01-14 04-59-41