parcel: Parcel sometimes fails to start properly
π bug report
He can sometimes work, sometimes he canβt work.
When I remove the scss file it may improve, but Iβm not sure if the problem is there.
Perhaps it is related to the loading mechanism of the module?
Faster processing when there are fewer modules, When the number of modules is large, the dependency is more complicated and the relationship is not handled properly, Causes the process to exit abnormally.

π Configuration (.babelrc, package.json, cli command)
{
"name": "parcel",
"version": "1.0.0",
"scripts": {
"dev": "parcel ./src/view/*.html"
},
"devDependencies": {
"node-sass": "^4.9.0",
"parcel-bundler": "^1.8.1"
}
}
π€ Expected Behavior
Normal start work
π― Current Behavior
Sometimes quit abnormally
Comparison of loading scss files and removing scss

π¦ Context
parcel ./src/view/*.html
yarn run v1.5.1
$ parcel ./src/view/*.html
Server running at http://localhost:1234
β³ Building hmr-runtime.js...
error An unexpected error occurred: "Command failed.
Exit signal: SIGSEGV
Command: sh
Arguments: -c parcel ./src/view/*.html
Directory: /Users/WYH/Desktop/parcel
Output:
".
info If you think this is a bug, please open a bug report with the information provided in "/Users/WYH/Desktop/parcel/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
π» Code Sample
index.html :
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link rel="stylesheet" href="../style/index.scss">
</head>
<body>
hello world
</body>
</html>
base.scss :
body{
background: red;
}
index.scss :
@import './base.scss';
.btn{
width: 100px;
height: 38px;
border: 1px solid #ae2616;
color: #ae2616;
outline: none;
background-color: transparent;
cursor: pointer;
}
π Your Environment
| Software | Version(s) |
|---|---|
| Parcel | 1.8.1 |
| Node | 9.9.0 |
| npm/Yarn | 1.5.1 |
| Operating System | macOS High Soerra 10.13.4 |
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 19 (4 by maintainers)
Same here:
I am using parcel 2.11.0