ionic lab external

mustafaulker#ionic lab --external
> ng run app:serve — host=0.0.0.0 — port=8100
[ng] ERROR in node_modules/@apollo/client/utilities/observables/Observable.d.ts:1:8 - error TS1259: Module '"/home/mustafaulker/websites/gimapp/gimappionic/Gimapp/node_modules/@types/zen-observable/index"' can only be default-imported using the 'esModuleInterop' flag
[ng] 1 import Observable from 'zen-observable';
[ng] ~~~~~~~~~~
[ng] node_modules/@types/zen-observable/index.d.ts:69:1
[ng] 69 export = Observable;
[ng] ~~~~~~~~~~~~~~~~~~~~
[ng] This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
> ionic-lab http://localhost:8100 --host localhost --port 8200 --project-type angular --app-name Gimapp --app-version 0.0.1

to solve the problem just add

“allowSyntheticDefaultImports”: true,

to your tsconfig.json

No responses yet

Write a response