marko-js / webpack

A loader for marko files and a plugin for universal bundling
MIT License
13 stars 4 forks source link

Cannot assign to read only property 'exports' of object '#<Object>' #27

Closed MiloCasagrande closed 4 years ago

MiloCasagrande commented 4 years ago

Version: 4.1.1

Details

After updating to the latest version of @marko/webpack, when I load the app in the browser I get the following error message:

Cannot assign to read only property 'exports' of object '#<Object>'

This prevents the rest of the app to work correctly.

When compiling the project, I also get the following warning:

"export 'default' (imported as 'component') was not found in './index.marko'

repeated multiple times (for each component).

I'm not sure if this is the expected behavior for @marko/webpack 4.1.1, if it's a breaking change compared to the way components are written.

Your Environment

Steps to Reproduce

I tried also with the marko-webpack repository from the markojs examples updating all dependencies to the latest available versions, and I get the same error.

https://github.com/MiloCasagrande/marko-webpack/tree/marko-webpack-4.1.1

DylanPiercey commented 4 years ago

Should be fixed in 4.1.2. Thanks for filing the issue 😄