Closed DorianGrey closed 8 years ago
Hi, this looks to be happening because of the typings
configuration for .scss files:
'*.scss': {
'loader': 'scss',
'typings': true
}
this commit relaxed the check so that the plugin will try and resolve typings for all file extensions. In this case it is looking for the typings for app.component.scss
but they do not exist.
Thanks for the investigation.
Unfortunately, there is a type definition that should match app.component.scss
- a wildcard definition in src/customTypings.d.ts
:
declare module "*.scss" {
let __scss__: string;
export default __scss__;
}
This file is listed in the files
section of our tsconfig.json
. So this error is a little bit ... confusing.
However, removing the explicit typings
configuration entry for .scss files get this working again.
Hi,
I've recently tried to update plugin-typescript in our project (https://github.com/flaviait/ng2-jspm-template) from 5.2.4 to 5.2.7. This caused a rather curious error:
Any idea why the plugin is searching for a definition file for an existing source file?
/cc @svi3c