[WORKAROUND]: Cannot read property 'name' of undefined
in projects using esbuild
#190
Labels
bug
Something isn't working
Uh oh!
There was an error while loading. Please reload this page.
Version
5.0.0
Description
Leaving this workaround posted for other desperate visitors from google
This isn't actually a bug with
typescript-json-serializer
and can be closed (equally googleable).I was running into the error that it looks like other have run into where you can't serialize anything, and if you're going through google, you're seeing the advice to add these to your
.tsconfig
:My problem was that esbuild doesn't support the
emitDecoratorMetadata
flag.Remix.run uses esbuild and probably some other project stacks, and if this is your issue, you need to do some work to enable esbuild plugins to monkeypatch in support for
emitDecoratorMetadata
.esbuild-overrides.js
file in your project root directory:esbuild-overrides.js
file you just created. I changedto
I found this solution from remix-run/remix#2208 (comment)
Error
The text was updated successfully, but these errors were encountered: