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
{{ message }}
Repository navigation
Error: The glob pattern import("./**/*.entry.js*") did not match any files [empty-glob]bug: #5427
I have searched for existing issues that already report this problem, without success.
Stencil Version
dont know
Current Behavior
-1
In my Angular Project, when i do ng build, the build is canceled and i got:
▲ [WARNING] The glob pattern import("./**/.entry.js") did not match any files [empty-glob]
node_modules/@stencil/core/internal/client/index.js:3808:2:
3808 │ `./${bundleId}.entry.js${BUILD.hotModuleReplacement && hmrVers...
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Reacted by Kamil Chlebek, WhippyM, papastepano, Jimmy Verburgt, Michael Bolli, kopp-soptim, Israel Dryer, Jacob Samuel G., Greg Yantz, Jonny Saykosy and 37 more
It would be great if you could provide a bit more information to help us reproduce the case. Is your project using Stencil components from an NPM module or are you using Stencil components directly. This error message alone won't help us to start any investigations.
Thanks for the issue! This issue has been labeled as needs reproduction. This label is added to issues that need a code reproduction.
Please reproduce this issue in an Stencil starter component library and provide a way for us to access it (GitHub repo, StackBlitz, etc). Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed.
If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for our team to reproduce the issue.
For a guide on how to create a good reproduction, see our Contributing Guide.
ng build worked before. Then I changed it to use angular routes and I added angular material and ionic.
I remember that I also installated the pagage " postcss-import" and removed it again.
ng serve worked well all the time. Then i made ng build and it breaks.
Hello @benjaminmilcic, this looks like it might be the same issue as #5389 which was fixed in Stencil v4.12.4. Ionic Framework, however, is currently using Stencil v4.12.3, so I think that may have to do with why you're seeing the error.
To help us confirm that, could you provide a minimal reproduction case which showcases the issue? We aren't able to do much to help diagnose the issue without one. A minimal reproduction would be a git repository which includes the simplest project which showcases the problem, and will let us diagnose the issue and then test out a fix.
I was able to clone the reproduction and saw the following warning in the build step:
▲ [WARNING] The glob pattern import("./**/*.entry.js*") did not match any files [empty-glob]
node_modules/@stencil/core/internal/client/index.js:3808:2:
3808 │ `./${bundleId}.entry.js${BUILD.hotModuleReplacement && hmrVers...
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I think this warning can be ignored however we should identify if @ionic/angular uses Stencils lazy components or DCE (dist-custom-elements) and if not, ensure this part of stencil is not imported anywhere.
@benjaminmilcic we have ingested the issue into our backlog and will at it eventually. I unfortunately can't give you a timeline at this point but will make sure to post updates as we have it.
Is there a temporary fix coming for this issue or even better a permanent fix. It's a bit weird to build a app for production with these kinds of warnings in them even though they are harmless. Thanks!
I'm attempting to fix this warning and made an Ionic Framework dev build that works with the reproduction steps in this issue. It can be added to a project with
ng add @ionic/angular@8.7.10-dev.11763578076.1047c3c7
Please give it a try and let me know if it resolves the warning (or if it breaks anything!)
I'm attempting to fix this warning and made an Ionic Framework dev build that works with the reproduction steps in this issue. It can be added to a project with
ng add @ionic/angular@8.7.10-dev.11763578076.1047c3c7
Please give it a try and let me know if it resolves the warning (or if it breaks anything!)
Hi @guaycuru, I wonder if the dev build for Stencil did not get installed along with the Ionic dev build. Could you check your node_modules/@stencil/core/package.json and verify the version? It should be
Hi @guaycuru, I wonder if the dev build for Stencil did not get installed along with the Ionic dev build. Could you check your node_modules/@stencil/core/package.json and verify the version? It should be
That was indeed the issue, @stencil/core's version was still "version": "4.38.0",
After nuking node_modules and reinstalling everything the versions were correct and the warning was gone!
Thank you so much, and I'm sorry for the false alarm!
If you're facing the same warning while waiting for long term fix:
You can temporarily add override to package.json with mentioned version of "@stencil/core": "4.38.3-dev.1763390030.f9ccdac" that includes a fix #6452 that works for Esbuild while not limiting yourself to that specific Ionic dev version. But stay warned as that fix #6464 had to be reverted for now not to break webpack builds. Tested even with latest @ionic/angular 8.7.16
If any override was used, I would strongly recommend setting some reminder or notification to remove it once fixed in future versions.
tysm!
Stencil is more open-source led now.
I have raised it with the ionic team previously (I think it's in their backlog) but it helps to have it publically viewable.
Activity
christian-bromann commentedon Mar 3, 2024
@benjaminmilcic thanks for raising the issue.
It would be great if you could provide a bit more information to help us reproduce the case. Is your project using Stencil components from an NPM module or are you using Stencil components directly. This error message alone won't help us to start any investigations.
ionitron-bot commentedon Mar 3, 2024
Thanks for the issue! This issue has been labeled as
needs reproduction. This label is added to issues that need a code reproduction.Please reproduce this issue in an Stencil starter component library and provide a way for us to access it (GitHub repo, StackBlitz, etc). Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed.
If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for our team to reproduce the issue.
For a guide on how to create a good reproduction, see our Contributing Guide.
benjaminmilcic commentedon Mar 4, 2024
I don`t use Stencil directly. I never worked with it directly. I think it is used by Ionic.
Here is my package.json
{ "name": "aznw-routes", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "watch": "ng build --watch --configuration development", "test": "ng test" }, "private": true, "dependencies": { "@angular/animations": "^17.1.0", "@angular/cdk": "^17.2.1", "@angular/common": "^17.1.0", "@angular/compiler": "^17.1.0", "@angular/core": "^17.1.0", "@angular/forms": "^17.1.0", "@angular/google-maps": "^17.2.1", "@angular/material": "^17.2.1", "@angular/platform-browser": "^17.1.0", "@angular/platform-browser-dynamic": "^17.1.0", "@angular/router": "^17.1.0", "@ionic/angular": "^7.7.3", "@ngx-translate/core": "^15.0.0", "@ngx-translate/http-loader": "^8.0.0", "@tinymce/tinymce-angular": "^7.0.0", "angular-resizable-element": "^7.0.2", "feiertagejs": "^1.4.0", "ng2-tooltip-directive": "^2.10.3", "ngx-toastr": "^18.0.0", "rxjs": "~7.8.0", "tslib": "^2.3.0", "zone.js": "~0.14.3" }, "devDependencies": { "@angular-devkit/build-angular": "^17.1.2", "@angular/cli": "^17.1.2", "@angular/compiler-cli": "^17.1.0", "@types/jasmine": "~5.1.0", "jasmine-core": "~5.1.0", "karma": "~6.4.0", "karma-chrome-launcher": "~3.2.0", "karma-coverage": "~2.2.0", "karma-jasmine": "~5.1.0", "karma-jasmine-html-reporter": "~2.1.0", "tailwindcss": "^3.4.1", "typescript": "~5.3.2" } }ng build worked before. Then I changed it to use angular routes and I added angular material and ionic.
I remember that I also installated the pagage " postcss-import" and removed it again.
ng serve worked well all the time. Then i made ng build and it breaks.
Here is my tsconfig.js
/* To learn more about this file see: https://angular.io/config/tsconfig. */ { "compileOnSave": false, "compilerOptions": { "outDir": "./dist/out-tsc", "forceConsistentCasingInFileNames": true, "strict": false, "noImplicitOverride": true, "noPropertyAccessFromIndexSignature": true, "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, "skipLibCheck": true, "esModuleInterop": true, "sourceMap": true, "declaration": false, "experimentalDecorators": true, "moduleResolution": "node", "importHelpers": true, "target": "ES2022", "module": "ES2022", "useDefineForClassFields": false, "lib": [ "ES2022", "dom" ] }, "angularCompilerOptions": { "enableI18nLegacyMessageIdFormat": false, "strictInjectionParameters": true, "strictInputAccessModifiers": true, "strictTemplates": false } }Shall I provide other files here, like package-lock.json or so?
alicewriteswrongs commentedon Mar 4, 2024
Hello @benjaminmilcic, this looks like it might be the same issue as #5389 which was fixed in Stencil v4.12.4. Ionic Framework, however, is currently using Stencil v4.12.3, so I think that may have to do with why you're seeing the error.
To help us confirm that, could you provide a minimal reproduction case which showcases the issue? We aren't able to do much to help diagnose the issue without one. A minimal reproduction would be a git repository which includes the simplest project which showcases the problem, and will let us diagnose the issue and then test out a fix.
benjaminmilcic commentedon Mar 4, 2024
Ok, here are steps to reproduce:
(name: test)
(style sheets: css)
(no SSR)
ng version gives me:
Angular CLI: 17.2.2
Node: 20.11.0
Package Manager: npm 10.2.4
OS: win32 x64
Angular: 17.2.3
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Package Version
@angular-devkit/architect 0.1702.2
@angular-devkit/build-angular 17.2.2
@angular-devkit/core 17.2.2
@angular-devkit/schematics 17.2.2
@angular/cli 17.2.2
@schematics/angular 17.2.2
rxjs 7.8.1
typescript 5.3.3
zone.js 0.14.4
ionic version gives me:
7.2.0
And here is a GitHub-Repo:
[(https://github.com/benjaminmilcic/ionic-stencil-error)]
Thanks a lot for the time to try helping...
christian-bromann commentedon Mar 4, 2024
I was able to clone the reproduction and saw the following warning in the build step:
I think this warning can be ignored however we should identify if
@ionic/angularuses Stencils lazy components or DCE (dist-custom-elements) and if not, ensure this part of stencil is not imported anywhere.@benjaminmilcic we have ingested the issue into our backlog and will at it eventually. I unfortunately can't give you a timeline at this point but will make sure to post updates as we have it.
benjaminmilcic commentedon Mar 4, 2024
Can I ask you how I can make ng build with ignoring the warning and not break the build?
papastepano commentedon Mar 23, 2024
Thanks for rasing this issue. Experiencing the same problem, too.
moh4sa commentedon Apr 1, 2024
experiencing the same problem, too.
VerburgtJimmy commentedon Apr 2, 2024
Is there a temporary fix coming for this issue or even better a permanent fix. It's a bit weird to build a app for production with these kinds of warnings in them even though they are harmless. Thanks!
38 remaining items
fix(compiler): move dynamic import path into a variable
OS-jacobbell commentedon Nov 19, 2025
I'm attempting to fix this warning and made an Ionic Framework dev build that works with the reproduction steps in this issue. It can be added to a project with
Please give it a try and let me know if it resolves the warning (or if it breaks anything!)
PR is here for details on the change -> #6452
guaycuru commentedon Nov 19, 2025
Hey!
I just tested that dev build but unfortunately I'm still seeing the warn when building:
JakobMadsen717 commentedon Nov 19, 2025
Tested the @ionic/angular@8.7.10-dev.11763578076.1047c3c7
The warning I had for many months on ng build is resolved = gone. My app seems to work just fine. Looks good to me & thanks for working on resolve.
OS-jacobbell commentedon Nov 19, 2025
Hi @guaycuru, I wonder if the dev build for Stencil did not get installed along with the Ionic dev build. Could you check your
node_modules/@stencil/core/package.jsonand verify the version? It should beguaycuru commentedon Nov 20, 2025
That was indeed the issue,
@stencil/core's version was still"version": "4.38.0",After nuking
node_modulesand reinstalling everything the versions were correct and the warning was gone!Thank you so much, and I'm sorry for the false alarm!
fix(compiler): move dynamic import path into a variable (#6452)
ch-ris commentedon Jan 7, 2026
If you're facing the same warning while waiting for long term fix:
You can temporarily add override to package.json with mentioned version of
"@stencil/core": "4.38.3-dev.1763390030.f9ccdac"that includes a fix #6452 that works for Esbuild while not limiting yourself to that specific Ionic dev version. But stay warned as that fix #6464 had to be reverted for now not to break webpack builds. Tested even with latest@ionic/angular 8.7.16If any override was used, I would strongly recommend setting some reminder or notification to remove it once fixed in future versions.
trakhimenok commentedon Feb 6, 2026
Is there a plan to implement a fix that would work for both esbuild and webpack?
johnjenkins commentedon Feb 6, 2026
@trakhimenok it's already in-place 😄 -
ionic just need to add the
enableImportInjectionoption to their config hereThis really isn't Stencil's issue - unfortunately I can't transfer it to ionic
trakhimenok commentedon Feb 6, 2026
@johnjenkins thanks, I've raised a bug with Ionic (see link above).
P.S. I though Stencil was developed and is supported by Ionic team.
johnjenkins commentedon Feb 6, 2026
tysm!
Stencil is more open-source led now.
I have raised it with the ionic team previously (I think it's in their backlog) but it helps to have it publically viewable.
OS-jacobbell commentedon Feb 26, 2026
This should now be fixed for real in
@ionic/angular@8.7.18as a nice side effect of fixing a different issue, ionic-team/ionic-framework#30958