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.

2018-05-14 09_49_45

πŸŽ› 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

-1

πŸ”¦ 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)

Most upvoted comments

Same here:

> yarn build
yarn run v1.22.19
warning package.json: No license field
$ parcel build
error Command failed with signal "SIGSEGV".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I am using parcel 2.11.0