aurelia / framework

The Aurelia 1 framework entry point, bringing together all the required sub-modules of Aurelia.
MIT License
11.76k stars 623 forks source link

Aurelia-router.d.ts is not a module error. #908

Closed azaharafernandezguizan closed 6 years ago

azaharafernandezguizan commented 6 years ago

I have just created a new Aurelia project with Aurelia.cli and I am trying to implement Aurelia routing following the official documentation. But when I do the import:

import {RouterConfiguration, Router} from 'aurelia-router';

it gives me this error:

[ts] File '../dist/aurelia-router.d.ts' is not a module.

Anyone knows how to solve this issue?

StrahilKazlachev commented 6 years ago

Please follow the issue template. We do need the info from it, like TS version, loader/bundler, cli version, ... Also do you get this error in the editor or during compilation?

Alexander-Taran commented 6 years ago

@azaharafernandezguizan and exact steps how you end up there as well. Please.

Alexander-Taran commented 6 years ago
async triageQuestion(id) =>{
 respondSameDay()
 let response = await getResponseFromOP( { timeout : 4weeks } )
 if(!response) {
    closeQuestion(id,randomReason())
 }
}