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

Compile errors with react-scripts 5.0.1 #65

Open
ivanAlfonsoVillaVazquez opened this issue Oct 31, 2022 · 3 comments
Open

Compile errors with react-scripts 5.0.1 #65

ivanAlfonsoVillaVazquez opened this issue Oct 31, 2022 · 3 comments

Comments

@ivanAlfonsoVillaVazquez

Hi,

After updating to react-scripts 5.0.1 I had a brunch of erros like these:

Attempted import error: 'print' is not exported from 'graphql' (imported as 'print').
ERROR in ./node_modules/@absinthe/socket-apollo-link/dist/index.js 31:15-20
export 'print' (imported as 'print') was not found in 'graphql' (module has no exports)

ERROR in ./node_modules/@absinthe/socket-apollo-link/node_modules/graphql/index.mjs 34:0-49
Module not found: Error: Can't resolve './graphql' in '/Users/ivanvilla/Documents/git/kor-frontend/node_modules/@absinthe/socket-apollo-link/node_modules/graphql'
Did you mean 'graphql.mjs'?
BREAKING CHANGE: The request './graphql' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

ERROR in ./node_modules/@absinthe/socket-apollo-link/node_modules/graphql/index.mjs 36:0-58:50
Module not found: Error: Can't resolve './type' in '/Users/ivanvilla/Documents/git/kor-frontend/node_modules/@absinthe/socket-apollo-link/node_modules/graphql'
Did you mean 'index.mjs'?
BREAKING CHANGE: The request './type' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

ERROR in ./node_modules/@absinthe/socket-apollo-link/node_modules/graphql/index.mjs 60:0-68:205
Module not found: Error: Can't resolve './language' in '/Users/ivanvilla/Documents/git/kor-frontend/node_modules/@absinthe/socket-apollo-link/node_modules/graphql'
Did you mean 'index.mjs'?
BREAKING CHANGE: The request './language' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

ERROR in ./node_modules/@absinthe/socket-apollo-link/node_modules/graphql/index.mjs 70:0-101
Module not found: Error: Can't resolve './execution' in '/Users/ivanvilla/Documents/git/kor-frontend/node_modules/@absinthe/socket-apollo-link/node_modules/graphql'
Did you mean 'index.mjs'?
BREAKING CHANGE: The request './execution' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

ERROR in ./node_modules/@absinthe/socket-apollo-link/node_modules/graphql/index.mjs 71:0-68
Module not found: Error: Can't resolve './subscription' in '/Users/ivanvilla/Documents/git/kor-frontend/node_modules/@absinthe/socket-apollo-link/node_modules/graphql'
Did you mean 'index.mjs'?
BREAKING CHANGE: The request './subscription' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

ERROR in ./node_modules/@absinthe/socket-apollo-link/node_modules/graphql/index.mjs 73:0-77:675
Module not found: Error: Can't resolve './validation' in '/Users/ivanvilla/Documents/git/kor-frontend/node_modules/@absinthe/socket-apollo-link/node_modules/graphql'
Did you mean 'index.mjs'?
BREAKING CHANGE: The request './validation' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

ERROR in ./node_modules/@absinthe/socket-apollo-link/node_modules/graphql/index.mjs 79:0-64
Module not found: Error: Can't resolve './error' in '/Users/ivanvilla/Documents/git/kor-frontend/node_modules/@absinthe/socket-apollo-link/node_modules/graphql'
Did you mean 'index.mjs'?
BREAKING CHANGE: The request './error' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

ERROR in ./node_modules/@absinthe/socket-apollo-link/node_modules/graphql/index.mjs 81:0-144:42
Module not found: Error: Can't resolve './utilities' in '/Users/ivanvilla/Documents/git/kor-frontend/node_modules/@absinthe/socket-apollo-link/node_modules/graphql'
Did you mean 'index.mjs'?
BREAKING CHANGE: The request './utilities' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

I think that this errors are related to thee new version of Webpack.

@kyleboe
Copy link

kyleboe commented Nov 30, 2022

I am running into this as well. It looks like the bump to Webpack 5 in react-scripts is causing this.

@jzwood
Copy link

jzwood commented Dec 6, 2022

yeah, same issue for us too 😕.

@kyleboe
Copy link

kyleboe commented Dec 6, 2022

@jzwood I'd recommend checking out the discussion here: #66. It seems like this library is unnecessary if you are using a modern version of the @apollo/client.

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

3 participants