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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wildcard import crush on MS Windows #1967

Closed
Akiyamka opened this issue Aug 31, 2018 · 1 comment
Closed

Wildcard import crush on MS Windows #1967

Akiyamka opened this issue Aug 31, 2018 · 1 comment

Comments

@Akiyamka
Copy link

馃悰 bug report

parcel crush when try build project with wildcard import on Windows

馃帥 Configuration (.babelrc, package.json, cli command)

package.json

{
  "name": "hazard-report",
  "version": "1.0.0",
  "description": "page for hazard report",
  "main": "index.html",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "parcel index.html",
    "build": "parcel build index.html --out-dir public",
    "serve": "http-server ./public"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "vue": "^2.5.17"
  },
  "devDependencies": {
    "autoprefixer": "^9.1.3",
    "babel-preset-env": "^1.7.0",
    "babel-preset-stage-1": "^6.24.1",
    "http-server": "^0.11.1",
    "parcel": "^1.9.7",
    "postcss-modules": "^1.3.2",
    "stylus": "^0.54.5"
  },
  "alias": {
    "vue": "./node_modules/vue/dist/vue.common.js"
  }
}

.babelrc.json

{
    "presets": ["stage-1"]
}

.postcssrc.json

{
  "modules": true,
  "plugins": {
    "autoprefixer": {
      "grid": false
    }
  }
}

馃 Expected Behavior

It must not crush, as it happens on linux, or if i comment wildcard import on windows

馃槸 Current Behavior

Its crush after start
parcel index.html

Error: ENOENT: no such file or directory, open 'G:\git\hazard-brief\src\assets\images\icons\hazards\large\*.png'

馃拋 Possible Solution

No idea

馃捇 Code Sample

Just take windows 10 and try do something like this:

import images from '/images/*.png';

Then try build it.

馃實 Your Environment

Software Version(s)
Parcel 1.9.7
Node 7.9.0
npm/Yarn npm 4.20
Operating System Windows 10 x64 Pro (1790)
@DeMoorJasper
Copy link
Member

Fixed in #1965

Gonna close this for now as it's a known issue and a PR already exists

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants