The Wayback Machine - https://web.archive.org/web/20200531152713/https://github.com/parcel-bundler/parcel/issues/4490
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML Meta Tag with msapplication-config breaks bundling #4490

Open
ZachariahRosenberg opened this issue Apr 17, 2020 · 2 comments
Open

HTML Meta Tag with msapplication-config breaks bundling #4490

ZachariahRosenberg opened this issue Apr 17, 2020 · 2 comments

Comments

@ZachariahRosenberg
Copy link

@ZachariahRosenberg ZachariahRosenberg commented Apr 17, 2020

🐛 bug report

Took a while to find this one...
Using an older version of parcel, ~1.9, everything worked correctly. The problem I had was that the older parcel version's server was running at +400% CPU on idle (That issue was reported here: #2456).

After upgrading to any version 1.10 or later, the command parcel app/index.html was throwing:

/Users/zr/project/app/none: ENOENT: no such file or directory, open '/Users/zr/project/app/none'
Error: ENOENT: no such file or directory, open '/Users/zr/project/app/none'

The folder structure, briefly, is:

project:
- package.json
- .env
- README.md
- app:
   - index.html
   - css
   - img
   - js:
       - index.js
       ... and on

After commenting out line by line I found the culprit is in index.html, specifically the following line:

<meta name="msapplication-config" content="none"/

Removing that line fixed the issue.

🎛 Configuration (.babelrc, package.json, cli command)

{
  "presets": ["react", "es2015"],
  "env": {
    "development": {
    "plugins": [["react-transform", {
       "transforms": [{
         "transform": "react-transform-hmr",
         "imports": ["react"],
         "locals": ["module"]
       }]
     }]]
    }
  }
}
npx parcel app/index.html -p 8080

🤔 Expected Behavior

Successful build and server start

😯 Current Behavior

/Users/zr/project/app/none: ENOENT: no such file or directory, open '/Users/zr/project/app/none'
Error: ENOENT: no such file or directory, open '/Users/zr/project/app/none'

💁 Possible Solution

🔦 Context

💻 Code Sample

🌍 Your Environment

Software Version(s)
Parcel 1.12.4
Node v10.16.0
npm/Yarn 6.14.4
Operating System Mac OSX Catalina

Thank you! Happy to donate once I've fulled swapped webpack out - I'm certainly excited to do so!

@mischnic
Copy link
Member

@mischnic mischnic commented Apr 17, 2020

To fix this in Parcel 2, the value none should ignored in this case:

@vikene
Copy link

@vikene vikene commented May 18, 2020

@mischnic I am new to the community, I tried fixing this bug. Let me know if I have to refactor my change or add an integration test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.