Skip to content

Angularjs: no declaration file (.d.ts) for "swagger-editor" / try npm i @types/swagger-editor #1875

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

Closed
ghost opened this issue Aug 28, 2018 · 5 comments

Comments

@ghost
Copy link

ghost commented Aug 28, 2018

Q&A (please complete the following information)

  • OS: [macOS]
  • Method of installation: [e.g. npm]
  • Swagger-Editor version: [e.g. 3]

Hi,

i downloaded the swagger-editor with npm (as well as some dependencies), but when trying to import it into my app.component.ts with
import { SwaggerEditorBundle, SwaggerEditorStandalonePreset } from 'swagger-editor';

it says no declaration file for swagger-editor found, try npm install @types/swagger-editor or declare a d.ts file. First one gives me a 404. Does anyone know what to do, why I get this "error" ?

Thx in advance

@ghost ghost changed the title Angualarjs: no declaration file (.d.ts) for "swagger-editor" / try npm i @types/swagger-editor Angularjs: no declaration file (.d.ts) for "swagger-editor" / try npm i @types/swagger-editor Aug 28, 2018
@shockey
Copy link
Contributor

shockey commented Aug 28, 2018

Hi @mathata, this is a TypeScript problem. See this issue for ways to solve it: microsoft/TypeScript#15031

Let me know if this gets you unstuck!

@ghost
Copy link
Author

ghost commented Aug 29, 2018

Hi, thx for the answer. I switched to Express/ Bootstrap (still did not work in my case) using the dist directory. this now finally works for me.

@shockey
Copy link
Contributor

shockey commented Sep 5, 2018

Hmm, that’s no good. Is there a way for me to see the code you’re working with? Much easier to pinpoint the problem that way.

@ghost
Copy link
Author

ghost commented Sep 23, 2018

the old code I don‘t have any more. Thx nonetheless!

@shockey
Copy link
Contributor

shockey commented Sep 25, 2018

Ok! Closing as resolved.

@shockey shockey closed this as completed Sep 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant