You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to switch from browser-esbuild to application builder like the deprecation warning suggests, I get the following cryptic messages:
Data path "" must have required property 'browser'.: means main option was split to browser and server and you are supposed to add at least browser option:
Agreed the error message here is not great. Unfortunately, this one is generated from Architect which is too generic to really be more specific. It doesn't have the context to give more information here.
We have a more general issue tracking this here: #11479
For browser / browser-esbuild -> application specifically, we're working on a schematic to automatically perform this migration so users would never make this mistake in the first place.
Command
build
Description
When trying to switch from
browser-esbuild
toapplication
builder like the deprecation warning suggests, I get the following cryptic messages:Data path "" must have required property 'browser'.
: meansmain
option was split tobrowser
andserver
and you are supposed to add at leastbrowser
option:Data path "" must NOT have additional properties(main).
:main
was replaced bybrowser
andserver
.Data path "/polyfills" must be array.
."polyfills": "src/polyfills.ts"
option should be replaced with"polyfills": ["zone.js"]
Describe the solution you'd like
Better error messages.
Describe alternatives you've considered
No response
The text was updated successfully, but these errors were encountered: