-
Notifications
You must be signed in to change notification settings - Fork 783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: The glob pattern import("./**/*.entry.js*") did not match any files [empty-glob]bug: #5427
Comments
@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. |
Thanks for the issue! This issue has been labeled as 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. |
I don`t use Stencil directly. I never worked with it directly. I think it is used by Ionic. Here is my package.json
ng build worked before. Then I changed it to use angular routes and I added angular material and ionic. Here is my tsconfig.js
Shall I provide other files here, like package-lock.json or so? |
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. |
Ok, here are steps to reproduce:
ng version gives me: Angular CLI: 17.2.2 Angular: 17.2.3 Package Version@angular-devkit/architect 0.1702.2 ionic version gives me: And here is a GitHub-Repo: Thanks a lot for the time to try helping... |
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 @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. |
Can I ask you how I can make ng build with ignoring the warning and not break the build? |
Thanks for rasing this issue. Experiencing the same problem, too. |
experiencing the same problem, too. |
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! |
Hey folks, we don't have a timeline at the moment. Please upvote this issue using the 👍 reaction on the summary of the issue to help us get better visibility into its severity |
experiencing the same problem with node 18, too. |
Tengo exactamente el mismo problema tambien |
i'm experiencing this problem too Angular CLI: 17.3.0 Angular: 17.3.0 Package Version@angular-devkit/architect 0.1703.0 |
@WhippyM @claudiotrenca can you elaborate what problem you are experiencing? I can confirm what @gultyayev is observing which is that a warning is being thrown but can be disregarded. |
I also face this issue. I don't have any private info, so I can share it. @christian-bromann here is repo https://github.com/HaidarVladyslav/ionic-report-glob-import Please let me know if it's internal issue or just on my side - but according to current discussion it seems few people also face same issue. Hope it helps, thank you! |
It seems like it was another mistake. It is only a warning. But it's confusing. |
@HaidarVladyslav it's not clear from your post what error you are facing, as the "error" in the topic is not an error, but a warning, and does not prevent builds, normally. What issues I see when I cloned your repo:
Also, I had to remove the IOS folder, and add the platform again, because my Xcode ran into some permission errors. Which I would guess could be a result of some All I did is – read error messages, and fixed them. |
@forrestlin2020 can you provide a minimal reproducible example? At this point all we can do is to better document the warning from the compiler and that it can be ignored. If someone can provide anything reproducible that has a bigger user impact please share an example with us. |
What is the error you get? Any chance it's same as in the item 2 here? If so, then you need to adjust your capacitor config. That's the only substantial difference between the old and the new builder. One more folder nesting level in the build output. |
@forrestlin2020 it's not an error. It says "warning" in the logs. Look for "error" wording. Or, for red words. If you post the whole console output from the command input till the very end – this would help figuring what is wrong there. You can also try |
@forrestlin2020 I asked for the whole output. This piece that you have posted is not helpful to understand what problem you are facing. Given the lack of information I can blindly guess that if you change your |
This warning also occurs for me, but only when using esbuild with the following configuration: angular.json
{
"executor": "@angular-devkit/build-angular:application"
} import type { CapacitorConfig } from '@capacitor/cli';
const config: CapacitorConfig = {
appId: 'io.ionic.starter',
appName: 'ionic0417',
webDir: 'www/browser'
};
export default config; |
This same issue also can be replicated with the Replication instructions:
|
This adds a note about the build issue documented in ionic-team/stencil#5427 just so that users of the Angular OT are forewarned. STENCIL-1193
This adds a note about the build issue documented in ionic-team/stencil#5427 just so that users of the Angular OT are forewarned. STENCIL-1193
This adds a note about the build issue documented in ionic-team/stencil#5427 just so that users of the Angular OT are forewarned. STENCIL-1193
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
This comment was marked as spam.
Hey folks 👋 I will go ahead and close this issue as there doesn't seem to be anything actionable for us anymore. We have documented that this warning is expected and can be ignored. Note: if you are using lazy loaded components, there is no way around this dynamic import. If you are using a compiler like Esbuild or Vite you are better off compiling Stencil components using the If you are using an external Stencil component, check if they compile and publish a You can find more information about the differences between lazy and standalone components in the Stencil docs. If you have further questions, join our Discord channel! Thank you! |
Prerequisites
Stencil Version
dont know
Current Behavior
-1
In my Angular Project, when i do ng build, the build is canceled and i got:
ng serve works well.
Has anyone an idea what that means?
Expected Behavior
i expect that the build do not cancel.
System Info
"npx stencil info" gives me: Build: 1708962986 Stencil: 4.12.4 TypeScript: 5.3.3 Rollup: 2.56.3 Parse5: 7.1.2 jQuery: 4.0.0-pre Terser: 5.27.2
Steps to Reproduce
i do not know
Code Reproduction URL
i do not know
Additional Information
No response
The text was updated successfully, but these errors were encountered: