Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

angular-hybrid.d.ts(1,23): error #58

Closed
AlexDaSoul opened this issue Nov 20, 2017 · 3 comments
Closed

angular-hybrid.d.ts(1,23): error #58

AlexDaSoul opened this issue Nov 20, 2017 · 3 comments

Comments

@AlexDaSoul
Copy link

AlexDaSoul commented Nov 20, 2017

Hi!

ERROR in node_modules/@uirouter/angular-hybrid/lib/angular-hybrid.d.ts(1,23): error TS2688: Cannot find type definition file for 'angular'.

windows 10
Node v8.9.0
npm 5.5.1
AngularJs 1.6.6
angular-cli 1.5.0
Angular 5.0.0

@SamanthaAdrichem
Copy link

SamanthaAdrichem commented Nov 21, 2017

I have the same issue

[at-loader] ./node_modules/@uirouter/angular-hybrid/lib/angular-hybrid.d.ts:1:1
    TS2688: Cannot find type definition file for 'angular'.

[at-loader] ./node_modules/@uirouter/angular-hybrid/lib/angular-hybrid.d.ts:2:26
    TS7016: Could not find a declaration file for module 'angular'. node_modules/angular/index.js' implicitly has an 'any' type.

Any info yet? i've noticed a local angular file, which might be the conflicting one?

@SamanthaAdrichem
Copy link

I resolved this error, by updating my typescript config to config below (though i wonder if i didn't just surpress the error)

{
	"compilerOptions": {
		"target": "es5",
		"module": "commonjs",
		"moduleResolution": "node",
		"sourceMap": true,
		"emitDecoratorMetadata": true,
		"experimentalDecorators": true,
		"lib": [ "es6", "dom" ],
		"noImplicitAny": true,
		"suppressImplicitAnyIndexErrors": true,
		"declaration": false,
		"skipLibCheck": true
	}
}

@christopherthielen
Copy link
Member

christopherthielen commented Dec 4, 2017

You can fix this by adding the type defs npm install @types/angular @types/jquery.

We have those as a devDependency in angular-hybrid package.json, but maybe they need to be dependency?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants