Uncaught TypeError: Cannot add property async, object is not extensible
See original GitHub issueI keep getting Uncaught TypeError: Cannot add property async, object is not extensible
when trying to pack my library with bili.
I hope I’m using the settings correctly. I’m trying to get my library to export a ES6 file and a normal and minified version of the file for browsers. I’m using yarn bili --format cjs,es,umd,umd-min --nodeResolve.preferBuiltins
to bundle the files.
I’m using --nodeResolve.preferBuiltins
as I use Buffer in my library and that fixes the issue of it not being mocked for the browser.
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
TypeError: can't define property "x": "obj" is not extensible
To fix this error, you will either need to remove the call to Object.preventExtensions() entirely, or move it to a position so that...
Read more >Throwing an error TypeError: Cannot add property 0, object is ...
I'm starting with an array of User objects (users.mock.ts); Each Object is then map to ... These calls will not be made until...
Read more >TypeError: can't define property "x": "obj" is not extensible
The JavaScript exception "can't define property "x": "obj" is not extensible" occurs when Object.preventExtensions() marked an object as no longer ...
Read more >This Error is coming "Cannot add property count, object is not ...
It seems that with Spring 20, the response from apex has become non-extensible with additional parameters.
Read more >TypeError: Cannot add property 0, object is not extensible ...
It looks like the docRef is undefined/null, so when you are trying to call the getDoc on an undefined value it fails. How...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@OmgImAlexis no idea until I get home 😄 you should also use es modules
Hmm I don’t get the error
Uncaught TypeError: Cannot add property async, object is not extensible
after removed theasync
plugin (which transforms async to generator which buble can’t transform), just a bunch of warnings:btw I should find a way to reduce duplicated warnings 😄