Ionic App and esbuild, anyone is using it?

Hello,
as suggested by ionic vs extension i’ve tried to move from webpack to esbuild but now my app doesn’t work anymore: if I run “ionic serve” i get a lot of errors in the console
like this:

chunk-VIBOU7HO.js?v=f73f4152:50 ERROR Error: Dynamic require of “./main.module-5MY3Q5GX.js” is not supported
or

TypeError: Cannot read properties of undefined (reading ‘isProxied’)

and

The glob pattern import(“./**/.entry.js”) did not match any files [empty-glob]

do I need to fix something somewhere?

thank you.

I also made this mistake,

The Angular version only reports this error

@mhartington The Angular version only reports this error

As far as i know , ESBUILD is only supported if you are going stand alone components.
if you are still using ng module then ESBUILD ENV wont work.

3 Likes

I was just victim of this too, following the Ionic VS code extension recommendation, reverted to web pack and all return to working as usual.

1 Like