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
i use angular17 and i have some files with filename startwith 'er', e.g. er-page.module.ts or er.json. when i use esbuild with nameChuncks:true, i can not load these files, error 404.
my routing is
This is a very strange issue, and this is probably something you have to debug for yourself. That said, I did notice one thing, which could be a problem or might just be a typo:
When i change the file path to import('./pages/er-page/Er-page.module').then(m => m.ErPageModule), the issue is ok
This is the only thing you posted with a capital E: Er instead of er. Is that the problem?
In any case, marking this issue as unactionable because it doesn't have enough information.
is ebuild generate bundle file name with its path, right? like ./pages/er-page/er-page.module --> er-page.module-[hash].js.
but as i posted what changes of path I have tried, it seems as long as the path startwith smallcase 'er', this issue occurs.
source includes iot-page.module, but not er-page.module
i use angular17 and i have some files with filename startwith 'er', e.g. er-page.module.ts or er.json. when i use esbuild with nameChuncks:true, i can not load these files, error 404.
my routing is
the build output file name is er-page.module-ZKPN5Y5Z.js and iot-page.module-SETEPPCX.js
but the browser can not load er-page.module-ZKPN5Y5Z.js ,while iot-page.module-SETEPPCX.js is ok
When i change the file path to import('./pages/er-page/Er-page.module').then(m => m.ErPageModule), the issue is ok
and i try other changes, like following:
import('./pages/er-page/er-page.module').then(m => m.QrPageModule) no
import('./pages/er-page/qr-page.module').then(m => m.ErPageModule) ok
import('./pages/er-page/qr-page.module').then(m => m.QrPageModule) ok
import('./pages/er-page/ere-page.module').then(m => m.ErPageModule) no
import('./pages/er-page/ere-page.module').then(m => m.QrPageModule) no
import('./pages/er-page/ereq-page.module').then(m => m.ErPageModule) no
import('./pages/er-page/qer-page.module').then(m => m.ErPageModule) ok
import('./pages/er-page/qere-page.module').then(m => m.ErPageModule) ok
import('./pages/er-page/erq-page.module').then(m => m.ErPageModule) no
i wonder is 'er' special?
The text was updated successfully, but these errors were encountered: