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

SDK typings building error #1721

Closed
korytoff opened this issue Jan 25, 2022 · 2 comments · Fixed by #1722
Closed

SDK typings building error #1721

korytoff opened this issue Jan 25, 2022 · 2 comments · Fixed by #1722
Assignees

Comments

@korytoff
Copy link

Description of Bug

Error while building application written on typescript

Steps to Reproduce

  1. Install the latest SDK (v.1.5.4) by NPM npm install --save @stackblitz/sdk
  2. Build an application (Angular in my case)
  3. See error on console

Expected Behavior

A clear and concise description of what you expected to happen.

Screenshots/Screencast

Screenshot 2022-01-25 at 7 41 49 PM

Additional Context/Questions

Wrong path strings in @stackblitz/sdk/typings/index.d.ts

Error: node_modules/@stackblitz/sdk/typings/index.d.ts:3:61 - error TS2307: Cannot find module '../../../../../../../Users/florens/Code/stackblitz/core/sdk/src/VM' or its corresponding type declarations.

3     connect: (frameEl: HTMLIFrameElement) => Promise<import("../../../../../../../Users/florens/Code/stackblitz/core/sdk/src/VM").VM>;
@fvsch
Copy link
Contributor

fvsch commented Jan 25, 2022

Thanks for the report @korytoff! Now this is embarrassing 🙈

We’ll have a patch release with a fix out tomorrow.
In the meantime you can also install the previous version, which should compile correctly:

npm install @stackblitz/sdk@1.5.3

@fvsch
Copy link
Contributor

fvsch commented Jan 26, 2022

This was closed a bit early, because the npm package was not published yet. It should be live as of a few hours ago.
@korytoff You should be able to use @stackblitz/sdk@1.5.5 now.

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

Successfully merging a pull request may close this issue.

2 participants