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

module can only be default-imported using the esmoduleinterop #1350

Closed
jack2gs opened this issue Jan 24, 2020 · 2 comments
Closed

module can only be default-imported using the esmoduleinterop #1350

jack2gs opened this issue Jan 24, 2020 · 2 comments

Comments

@jack2gs
Copy link

jack2gs commented Jan 24, 2020

Hi,

I'm trying to us lsp-mode to do React development with typescript. But it reports following errors.

import React from 'react'; // error happens in this line.
import logo from './logo.svg';
import './App.css';

Could you give me some advice on how to solve this please?

Thanks,
Jack

@yyoncho
Copy link
Member

yyoncho commented Jan 24, 2020

Check this - eclipse-theia/theia#6720 (comment)

@jack2gs
Copy link
Author

jack2gs commented Jan 25, 2020

Thanks! It's solved. Close it now. :)

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

2 participants