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

TypeError: Cannot assign to read only property 'exports' of start #24

Open
ChrisCinelli opened this issue Jan 30, 2016 · 3 comments
Open

Comments

@ChrisCinelli
Copy link

I am getting

/tools/run.js:63
module.exports = exports['default'];
               ^

TypeError: Cannot assign to read only property 'exports' of start
    at Object.<anonymous> (run.js:29:16)
    at Module._compile (module.js:435:26)

In start.js, I have:
import run from './run';

In run.js line 29:
export default run;

@maheshsundaram
Copy link

Did you figure this out? Is tools/run.js a transpiled file as well?

@ChrisCinelli
Copy link
Author

I end up not using this plug in.
I started moving as much as possible to import and explicitly using default when I want to keep require.

59naga added a commit that referenced this issue Feb 9, 2016
@jdalton
Copy link

jdalton commented May 12, 2016

Is this still an issue?

@59naga 59naga added conflicts pure esmodules aka `{modules: false}` no transformation to commonjs need reproducible environment and removed need reproducible environment conflicts pure esmodules aka `{modules: false}` no transformation to commonjs labels Jun 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants