hq: Builds broken on windows
Likely the same path issue as before. Luckily ubuntu builds still work so I can just build over there. 😃
Ubuntu
❯ npm -g list --depth=0 /home/zageron/.nvm/versions/node/v12.18.4/lib ├── @hqjs/hq@0.0.26 ├── npm@6.14.8 ├── npm-check-updates@9.0.2 └── typescript@4.0.3❯ hq build (c) hqjs @ 0.0.26 Start time: 0.2 s Visit https://localhost:8080 or https://172.31.211.4:8080 within local network ⬇️ /index.html 🆗 /index.html ⬇️ /stylesheets/style.scss ⬇️ /index.ts 🆗 /index.ts ⬇️ /render 🆗 /stylesheets/style.scss 🆗 /render ⬇️ /index.html 🆗 /index.html ⬇️ /index.ts 🆗 /index.ts ⬇️ /render 🆗 /render 📦 Bundling for old browsers ✅ Build successfully completed!
Windows
L:\git\zageron\tinkering>npm -g list --depth=0 C:\Users\Zageron\AppData\Roaming\npm +-- @hqjs/hq@0.0.26 +-- npm@6.14.8 +-- npm-check-updates@9.0.2 +-- sass@1.26.11 `-- typescript@4.0.3L:\git\zageron\tinkering>hq build (c) hqjs @ 0.0.26 Start time: 0.2 s Visit http://localhost:8080 or http://192.168.1.239:8080 within local network ⬇️ /index.html � /index.html ⬇️ /L:\stylesheets\style.scss ⬇️ /L:\index.ts ❌ Error /L:/index.ts: File /L:/index.ts not found NotFoundError: File /L:/index.ts not found at Object.throw (C:\Users\Zageron\AppData\Roaming\npm\node_modules\@hqjs\hq\node_modules\koa\lib\context.js:97:11) at resolveSrc (file:///C:/Users/Zageron/AppData/Roaming/npm/node_modules/@hqjs/hq/middlewares/resolve-path.mjs:128:21) at async file:///C:/Users/Zageron/AppData/Roaming/npm/node_modules/@hqjs/hq/middlewares/resolve-path.mjs:37:5 at async cors (C:\Users\Zageron\AppData\Roaming\npm\node_modules\@hqjs\hq\node_modules\@koa\cors\index.js:56:32) at async file:///C:/Users/Zageron/AppData/Roaming/npm/node_modules/@hqjs/hq/middlewares/error-handler.mjs:5:5 ❌ Error /L:/stylesheets/style.scss: File /L:/stylesheets/style.scss not found NotFoundError: File /L:/stylesheets/style.scss not found at Object.throw (C:\Users\Zageron\AppData\Roaming\npm\node_modules\@hqjs\hq\node_modules\koa\lib\context.js:97:11) at resolveSrc (file:///C:/Users/Zageron/AppData/Roaming/npm/node_modules/@hqjs/hq/middlewares/resolve-path.mjs:128:21) at async file:///C:/Users/Zageron/AppData/Roaming/npm/node_modules/@hqjs/hq/middlewares/resolve-path.mjs:37:5 at async cors (C:\Users\Zageron\AppData\Roaming\npm\node_modules\@hqjs\hq\node_modules\@koa\cors\index.js:56:32) at async file:///C:/Users/Zageron/AppData/Roaming/npm/node_modules/@hqjs/hq/middlewares/error-handler.mjs:5:5 Error: Unable to build /L:\index.ts: Not Found at build (file:///C:/Users/Zageron/AppData/Roaming/npm/node_modules/@hqjs/hq/crawl/index.mjs:162:22) at processTicksAndRejections (internal/process/task_queues.js:93:5) at async request (file:///C:/Users/Zageron/AppData/Roaming/npm/node_modules/@hqjs/hq/crawl/index.mjs:115:5) Error: Unable to build /L:\stylesheets\style.scss: Not Found at build (file:///C:/Users/Zageron/AppData/Roaming/npm/node_modules/@hqjs/hq/crawl/index.mjs:162:22) at processTicksAndRejections (internal/process/task_queues.js:93:5) at async request (file:///C:/Users/Zageron/AppData/Roaming/npm/node_modules/@hqjs/hq/crawl/index.mjs:115:5) ⬇️ /index.html � /index.html ⬇️ /L:\index.ts ❌ Error /L:/index.ts: File /L:/index.ts not found NotFoundError: File /L:/index.ts not found at Object.throw (C:\Users\Zageron\AppData\Roaming\npm\node_modules\@hqjs\hq\node_modules\koa\lib\context.js:97:11) at resolveSrc (file:///C:/Users/Zageron/AppData/Roaming/npm/node_modules/@hqjs/hq/middlewares/resolve-path.mjs:128:21) at async file:///C:/Users/Zageron/AppData/Roaming/npm/node_modules/@hqjs/hq/middlewares/resolve-path.mjs:37:5 at async cors (C:\Users\Zageron\AppData\Roaming\npm\node_modules\@hqjs\hq\node_modules\@koa\cors\index.js:56:32) at async file:///C:/Users/Zageron/AppData/Roaming/npm/node_modules/@hqjs/hq/middlewares/error-handler.mjs:5:5 Error: Unable to build /L:\index.ts: Not Found at build (file:///C:/Users/Zageron/AppData/Roaming/npm/node_modules/@hqjs/hq/crawl/index.mjs:162:22) at processTicksAndRejections (internal/process/task_queues.js:93:5) at async request (file:///C:/Users/Zageron/AppData/Roaming/npm/node_modules/@hqjs/hq/crawl/index.mjs:115:5) � Bundling for old browsers ⚠️ Build completed with errors: � Error: Unable to build /L:\index.ts: Not Found � Error: Unable to build /L:\stylesheets\style.scss: Not Found � Error: Unable to build /L:\index.ts: Not Found
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 25 (16 by maintainers)
No worries, hope it is working, if not feel free to reopen an issue or create a new one. Merry Christmas and happy new year!
Thanks! That helps a lot! I’ll prepare a fix during next week and let you know.
It’s coming from the path.resolve(‘/’, rpath) calls.
iirc it had no drive letter in queue. Drive letter was only added after calling uriToPath, and/or resolve function.
Here’s my build output. I’ll look at debugging in a bit.
Verbose flag seems to be broken now.
Extra verbose bit
If you would be able to write up a quick set of dev instructions on how you have hq set up for debugging, I’d certainly be able to try debugging for future issues as well. Do you do much beyond having the project linked as a local dependency? I only have limited experience debugging my own dependencies, so some instructions would be appreciated, if possible.
I’ll give that version a try a little later today, thanks for your attempt! 😄
@Zageron I tried to hack it, please try
hq@0.0.27