https://github.com/killercodemonkey/ionic8-angular19-jest-fail
small repro that jest is failing with "Cannot use import statement outside a module"
https://github.com/killercodemonkey/ionic8-angular19-jest-fail
Last synced: 9 months ago
JSON representation
small repro that jest is failing with "Cannot use import statement outside a module"
- Host: GitHub
- URL: https://github.com/killercodemonkey/ionic8-angular19-jest-fail
- Owner: KillerCodeMonkey
- Created: 2024-12-10T07:05:30.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-10T07:08:54.000Z (about 1 year ago)
- Last Synced: 2024-12-10T08:19:00.034Z (about 1 year ago)
- Language: HTML
- Size: 154 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# IonicAngular19Jest
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.0.4.
Reproduction repo with Angular 19, Ionic 8 and Jest.
Run `npm run test` to start the default test with jest.
It leads to:
```SH
/home/bengtler/dev/ionic-angular19-jest/node_modules/@stencil/core/internal/client/index.js:11
import { BUILD } from "@stencil/core/internal/app-data";
^^^^^^
SyntaxError: Cannot use import statement outside a module
1 | import { Component } from '@angular/core';
2 | import { RouterOutlet } from '@angular/router';
> 3 | import { IonContent, IonFab, IonFabButton, IonIcon } from '@ionic/angular/standalone';
| ^
4 | import { addIcons } from 'ionicons';
5 | import { camera } from 'ionicons/icons';
```