Bug Report
For more information, see the CONTRIBUTING
guide.
Prerequisites
Environment Details and Version
- Ubuntu 22.04.02 LTS
- node 18.20.0
- yarn 1.22.19
- piral-cli 1.0.2
Description
I would like to define the Angular dependencies within the app shell in order to share them with the pilets. If the reproduction steps defined in the next step are executed, the following error message occurs:
๐ฆ piral-cli v1.0.2
โน Bundle emulator ...
vite v2.9.16 building for production...
transforming...
โ 451 modules transformed.
[vite:esbuild-transpile] Transform failed with 1 error:
assets/index.be692293.js:29639:8: ERROR: Expected ";" but found "changes"
Expected ";" but found "changes"
29637| * Returns Observable
of QueryList
notifying the subscriber of changes.
29638| */
29639| get changes() {
| ^
29640| return this._changes || (this._changes = new EventEmitter());
29641| }
โ [0174] The bundling process failed: Transform failed with 1 error:
assets/index.be692293.js:29639:8: ERROR: Expected ";" but found "changes"
๐ Find detailed descriptions at https://docs.piral.io/code/search
Steps to Reproduce
mkdir test
cd test
piral new --bundler vite --npm-client yarn --target .
- Add Angular dependencies (
dependencies
) within the package.json
{
"@angular/common": "^15",
"@angular/compiler": "^15",
"@angular/core": "^15",
"@angular/router": "^15",
"@angular/platform-browser": "^15",
"@angular/platform-browser-dynamic": "^15",
"core-js": "^3.19.0",
"rxjs": "^7.4",
"zone.js": "~0.13.0"
}
- Add imports (
importmap.imports
) within the package.json
{
"@angular/common": ".",
"@angular/compiler": ".",
"@angular/core": ".",
"@angular/platform-browser": ".",
"@angular/platform-browser-dynamic": ".",
"@angular/router": ".",
"rxjs": "."
}
yarn install
piral build
Expected behavior
The app shell is built successfully.
Actual behavior
An error message is thrown because a ;
is expected but changes
was found.
Possible Origin/Solution
If Angular is used in version 15, this problem does not occur.