Comments (8)
Can I ask you how I can make ng build with ignoring the warning and not break the build?
from stencil.
@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.
from stencil.
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.
from stencil.
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?
from stencil.
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.
from stencil.
Ok, here are steps to reproduce:
- ng new
(name: test)
(style sheets: css)
(no SSR) - ng add @ionic/angular
- ng build
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...
from stencil.
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.
from stencil.
Thanks for rasing this issue. Experiencing the same problem, too.
from stencil.
Related Issues (20)
- bug: NotSupportedError Failed to construct 'CustomElement': The result must not have attributes HOT 3
- bug: cloneNodeFix not working with experimentalSlotFixes flag HOT 4
- Nested Slots render children components in the wrong order if children components are added dynamically at run time. HOT 5
- bug: jeep-sqlite broken by version 4.12.2 HOT 3
- [Tracking] WebdriverIO Migration HOT 2
- bug: `emulate.userAgent` is not used in E2E Screenshot tests HOT 1
- feat: create a 'web-types' doc output target HOT 1
- feat: formAssociated element should treat boolean "disabled" Prop differently HOT 3
- bug: stencil build throws errors from node_modules HOT 4
- bug: hydrate app | unhandledRejection TypeError: Cannot read properties of undefined (reading 'nextTick') HOT 5
- bug: stencil build causes copyfile error and creates extra directory in monorepo HOT 2
- bug: Unable to run Angular test app outside monorepo and import Stencil component successfully HOT 11
- bug: Stencil Components: Nested Slots insert new children before last child if children components are added dynamically at run time. HOT 2
- bug: Nonce not being added to styles HOT 1
- bug: Boolean property not removing corresponding attribute when set to false programmatically HOT 5
- feat: Allow to specify in CustomOuputTarget if the output have to be re-executed on each build HOT 4
- bug: v4.12.2 breaks E2E tests HOT 4
- feat: node.eventListeners/getEventListeners(node) alternative to conditionally render internal elements, when an @Event has listeners. HOT 2
- bug: `emulate.viewport` crops the screenshot in E2E Screenshot tests HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stencil.