Closed English3000 closed 5 years ago
A person from Babel just posted:
so the problem is that the package that you're using, @absinthe/socket-relay/src/index.js
, is published as ES6
and Babel is only running on your own local files
The fix for @absinthe/socket-relay
is to use "@absinthe/socket-relay/compat/cjs"
in your files.
Repo
I need to comment out all files that use
@absinthe/socket-relay
orreact-router-native
(same error) to get the app to render.The issue is Brunch generates
require.register(
and havingexport {
inside the callback leads to a compilation error.How do I fix this?
(If you clone this, uncomment
environment.js
or/screens/Router.js
to generate a new build. Then in/priv/static/js/app.js
,cmd + f
for@absinthe/socket-relay
orreact-router-native
respectively. Look a few lines down for anexport {
clause.)