parcel: UnhandledPromiseRejectionWarning when building.
Hi. As many others I am very excited for the work you are doing here. Badly needed. I have stumpled upon a slight problem building even just the simplest html file:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<p>Hello...</p>
</body>
</html>
After running parcel index.html, the “dist” folder is created but it is empty. The following is the console errors:
Server running at http://localhost:1234
⏳ Building index.html...
(node:11164) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3001): RangeError: Maximum call stack size exceeded
(node:11164) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 13
- Comments: 18 (7 by maintainers)
Commits related to this issue
- Feature/#11 windows path issue (#48) * parse root path, add cross-env for windows and unix support * nromalize paths — committed to parcel-bundler/parcel by StarpTech 7 years ago
- Feature/#11 windows path issue (#48) * parse root path, add cross-env for windows and unix support * nromalize paths — committed to parcel-bundler/parcel by StarpTech 7 years ago
- Feature/#11 windows path issue (#48) * parse root path, add cross-env for windows and unix support * nromalize paths — committed to parcel-bundler/parcel by StarpTech 7 years ago
- Merged in enable-workerize (pull request #11) Enable workerize * Use unique keys in all workerize assets and do not process node_modules * Configure workerize transformer * Inline workerize worker... — committed to parcel-bundler/parcel by padmaia 4 years ago
- Merged in wbinnssmith/v2-2021-01-05 (pull request #11) Merge v2 2021-01-05 Approved-by: Gora Kong Approved-by: Agnieszka Gawrys — committed to parcel-bundler/parcel by deleted user 3 years ago
Published v1.0.3.
@thejameskyle exactly, I created a PR https://github.com/parcel-bundler/parcel/pull/48 which fix it but test are still failing. We should integrate CI.
In src/utils/config.js#L10, I did: replace
filepath === rootwithfilepath === root || filepath === path.dirname(filepath), then I run test again, got these:I followed the getting started and had the same results. Sample repo here: https://github.com/mwarger/parcel-getting-started-windows
Windows 10
Confirming this happens to me as well. Node 9.1.0