Microbundle: Throw Error when using styled-components

Created on 2 Dec 2018  路  5Comments  路  Source: developit/microbundle

I used styled-components and this makes an error that is: Error: Could not load stream (imported by ../node_modules/styled-components/dist/styled-components.cjs.js): ENOENT: no such file or directory, open 'stream'.
This error makes an issue for microbundle watch and this not working.

enhancement needs-review

All 5 comments

Can you provide some more details on how to reproduce this?

Can you provide some more details on how to reproduce this?

In this repository in replace_rollup branch, you can see what happens when running npm run build:watch. after the second change I got the above error. and watching mode not working anymore.

I think we need to have microbundle inspect the browser field.

I think we need to have microbundle inspect the browser field.
Yes also rollup has the same issue. I got the same error in rollup.

This was fixed at some point.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

breadadams picture breadadams  路  3Comments

adriengibrat picture adriengibrat  路  4Comments

chrstntdd picture chrstntdd  路  4Comments

SleeplessByte picture SleeplessByte  路  3Comments

dmitrykurmanov picture dmitrykurmanov  路  3Comments