Esm: Cannot add property _esModule, object is not extensive

Created on 20 Oct 2017  路  9Comments  路  Source: standard-things/esm

Repo to repro with

https://github.com/arackaf/test-mongo-graphql-starter.git

npm install, and then node index and you should get

This only started happening after the 0.12 upgrade, sorry :(

TypeError: Cannot add property __esModule, object is not extensible
at Object. (c:\GIT\test-mongo-graphql-starter\node_modules\mongo-graphql-starter\src\queryUtilities.js)
at Object. (c:\GIT\test-mongo-graphql-starter\node_modules\mongo-graphql-starter\src\queryUtilities.js)

bug

Most helpful comment

No prob. I've already repro'd and patched this morning, just figuring out a test case to add :yum:

All 9 comments

No problem! Thank you!

I knew 0.12.0 was going too quiet :yum:

Ugh sorry - I was using that repo repro for more than one thing. I've updated "mongo-graphql-starter": "0.1.1" to ship with a hard reference to your 0.11.0 loader - just update package.json to be

"mongo-graphql-starter": "0.1.0"

and it should ship with no loader at all (because I'm a moron) and so with 0.12 in the parent directory, the bug should reproduce.

Or if you already cloned that repo shortly after I sent this, and you've reproduced, then just don't pull :)

No prob. I've already repro'd and patched this morning, just figuring out a test case to add :yum:

So what was the problem? (just curious)

Ha - I meant more, what craziness was my code doing that you hadn't accounted for, which broke your loader?

Probably nothing wonly on your end. It's related to "cjs":true but beyond that not too sure yet.
I'll cook up a test though.

0.12.1 is released 馃帀

Was this page helpful?
0 / 5 - 0 ratings