-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Comments
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! |
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. |
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. |
the old code I don‘t have any more. Thx nonetheless! |
Ok! Closing as resolved. |
Q&A (please complete the following information)
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
The text was updated successfully, but these errors were encountered: