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

Support array entry point in webpack #153

Open
Tom910 opened this issue Apr 28, 2018 · 5 comments
Open

Support array entry point in webpack #153

Tom910 opened this issue Apr 28, 2018 · 5 comments

Comments

@Tom910
Copy link

Tom910 commented Apr 28, 2018

Hi, my project have multi entry point. But, css-block throw error and requires only string

ERROR in Path must be a string. Received [ './utils/polyfill/index.js', './packages/profile/client.js' ]

@amiller-gh
Copy link
Contributor

Hey @Tom910! I believe we fixed this in the 0.19.0 release of @css-blocks/webpack. Are you still seeing this error on that version?

@Tom910
Copy link
Author

Tom910 commented Apr 28, 2018

Hm, i have dep

    "@css-blocks/jsx": "^0.19.0",
    "@css-blocks/runtime": "^0.18.0",
    "@css-blocks/webpack": "^0.19.0",

my entry config

entry: {
  platform: [
    './utils/polyfill/index.js',
    './packages/profile/client.js'
  ]
}

and i reproduce error

@chriseppstein
Copy link
Contributor

It looks like we need to flatten this array

@ForsakenHarmony
Copy link
Contributor

Yup that, just ran into this as well

@ForsakenHarmony
Copy link
Contributor

should be fixed in the next release

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

Successfully merging a pull request may close this issue.

4 participants