我正在通过将Ionic4添加到AngularMeteor“裸露”示例中来使用Ionic4和Angular 7测试AngularMeteor。代码可以正常编译,但在运行“ meteor run”时失败:
未捕获到的SyntaxError:意外令牌{ 在 从'tslib'导入{__extends,__ awaiter,__ generator,__ assign};
Meteor / Node可能与CommonJS模块一起使用,但是Ionic4包已命名imports,并且是ES6模块。一种解决方法是使用AngularCLI或IonicCLI创建前端离子代码,并为后端创建MeteorCLI,但这将是一个很大的重写,因为我正在移植仅使用MeteorCLI的现有Meteor App。
是否可以使用MeteorCLI和Ionic4?
如果任何人都可以提供帮助,则这是Ionic4的“裸露”示例的副本: https://github.com/buymybm100/bare
非常感谢, 蜂鸣器
app.module.ts
import { IonicModule } from '@ionic/angular';
NgModule({
imports: [
IonicModule.forRoot(), // Run-time error if this is included
....