This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
Exported external package typings file is not a module #365
Closed
Description
I've finally set up Meteor to use Angular2 and Typescript, but when importing zone.js both Visual Studio Code and Meteor's typescript compiler complain about zone.js.d.ts not being a module.
The application works fine and it's just a minor development error, but it persists every time a change is made to the project, which may be annoying when looking at logs.
The code that I've used:
import 'reflect-metadata';
import 'zone.js';
import { Component } from '@angular/core';
import { bootstrap } from '@angular/platform-browser-dynamic';
@Component({
selector: 'app',
templateUrl: '/client/app.html'
})
class Socially {
constructor() {
console.log("Hi from inside the constructor");
}
}
bootstrap(Socially);
I have tried to install a zone.js typings file (with typings) but it did not work.
Metadata
Metadata
Assignees
Labels
No labels