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

Typescript Import error #612

Open
steklopod opened this issue Nov 8, 2023 · 0 comments
Open

Typescript Import error #612

steklopod opened this issue Nov 8, 2023 · 0 comments

Comments

@steklopod
Copy link

steklopod commented Nov 8, 2023

node_modules/.pnpm/@stomp+stompjs@7.0.0/node_modules/@stomp/stompjs/src/i-message.ts:1:10 - error TS1484: 'IFrame' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled.

1 import { IFrame } from './i-frame.js';

I think it should be:

import type { IFrame } from './i-frame.js';
import type { IMessage } from './i-message.js';

Instead of:

import { IFrame } from './i-frame.js';
import { IMessage } from './i-message.js';
Снимок экрана 2023-11-08 в 20 55 19
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

1 participant