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

import module without extension causes compiling error #2826

Closed
yaquawa opened this issue Oct 20, 2020 · 3 comments
Closed

import module without extension causes compiling error #2826

yaquawa opened this issue Oct 20, 2020 · 3 comments
Labels

Comments

@yaquawa
Copy link

yaquawa commented Oct 20, 2020

I'm getting errors like this when compiling

error  in ./node_modules/graphql/language/printer.mjs

Module not found: Error: Can't resolve './visitor' in '/Users/Documents/htdocs/node_modules/graphql/language'
Did you mean 'visitor.mjs'?

in the graphql/language/index.mjs,

if I change this

export { visit, visitInParallel, visitWithTypeInfo, getVisitFn, BREAK } from './visitor';

to this

export { visit, visitInParallel, visitWithTypeInfo, getVisitFn, BREAK } from './visitor.mjs';

will work.

@IvanGoncharov
Copy link
Member

@yaquawa What package version do you use?
Also, do you get this package through NPM?

@yaquawa
Copy link
Author

yaquawa commented Oct 21, 2020

@IvanGoncharov

What package version do you use?

I'm using version 14.0.0

do you get this package through NPM?

Yes, as a dependency of aws-amplify.

@IvanGoncharov
Copy link
Member

@yaquawa This issue was fixed in 15.0.0 as #2379

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

No branches or pull requests

2 participants