resharper wrong import statement
i'm using resharper ultimate 2017.2.1 and Vs Pro 2017 , when i need to use import like this
@NgModule({
declarations: [ StarComponent ], instead of using this syntax
import { StarComponent } from "app/shared/star.component";
Im getting this syntax :
import Starcomponent = require("./shared/star.component");
import StarComponent = Starcomponent.StarComponent;
that give my an error in the browser :
Import assignment cannot be used when targeting ECMAScript 2015 modules. Consider using 'import * as ns from "mod"', 'import {a} from "mod"', 'import d from "mod"', or another module format instead.
Please sign in to leave a comment.
Hello!
Thank you for contacting us.
Similar issue request is file in our issue tracker - https://youtrack.jetbrains.com/issue/RSRP-465628
You are welcome to comment or vote for it.
Thank you.