Our windows build server suddenly stopped building the files after updating parcel to 1.9.7 even though parcel logs no errors. I discovered that this is due to the path O:\path\to\jenkins\Our software Name (Dev)\frontend\src\index.pug not being handled correctly.
O:\path\to\jenkins\Our software Name (Dev)\frontend\src\index.pug to be used as entry asset
__No Error given__, and no entry assset set!
Test if the given path is a path on the system, since we simply cannot know if the path given is meant as a abstract (glob) or real path.
Should be changed into:
(Sidenote parcel mainly used fs.exists which is marked as deprecated, so i sticked with that for this example)
// Match files as globs
return entryFiles
.reduce((p, m) => {
let mResult;
// Check if the path exists, instead of treating certain non-alphabetic character
// as glob information
if (fs.exists(m)) {
mResult = m;
} else {
mResult = glob.sync(m);
}
return p.concat(mResult);
}, [])
.map(f => Path.resolve(f));
| Software | Version(s) |
| ---------------- | ---------- |
| Parcel | 1.9.7
| Node | 8.9.3
| npm/Yarn | 1.5.1 yarn
| Operating System | Win 10
Is this error has same roots?
I wanted to use square brackets in filenames, like Sapper does, but stuck with this :(

@victordidenko what version are you using? v1 or v2?
I can probably add a unit test for it and fix it if it's a Parcel 2 bug
$ parcel --version
1.12.4
I've tried Parcel v2 in docker, with same files, looks like it stucks in infinite loop:
root@330d0f9d1a64:/app# cat index.js
const m = require('./[id]')
console.log(m)
root@330d0f9d1a64:/app# cat \[id\].js
module.exports = 'test'
root@330d0f9d1a64:/app# node index.js
test
root@330d0f9d1a64:/app# npx parcel build index.js
โ ง Building [id]...
^C
root@330d0f9d1a64:/app# npx parcel --version
2.0.0-alpha.3.2
No stale, please, dear bot
@victordidenko sorry for not coming back to you on this earlier, but can you create a small example with which I can reproduce this? Preferably in a github repo.
This is also the real purpose of the Stale bot, to ensure we don't forget about old issues :)
Hm. I tried with version 2.0.0-beta.1 and looks like my issue is resolved, there is no infinite loop no more.
I didn't try op @Hammster's case though.
@victordidenko awesome, than I'll close this for now, we can always re-open it or open a new issue
Most helpful comment
I've tried Parcel v2 in docker, with same files, looks like it stucks in infinite loop: