mobxjs / mst-gql

Bindings for mobx-state-tree and GraphQL
MIT License
680 stars 81 forks source link

ERROR in ./node_modules/mst-gql/dist/mst-gql.module.js #369

Open ryskin opened 2 years ago

ryskin commented 2 years ago

I tried to add to the existing project but had an ERROR when trying to start. I created a new project (typescript, PWA) and followed instructions but have the same error.

I tried to google about this problem and search for related issues, but no success.

image

I suppose that is mostly related to graphql and webpack. I don't want to eject the project.

ryskin commented 2 years ago

Need to add

            {
              test: /\.m?js/,
              resolve: {
                fullySpecified: false,
              },
            },

I edited webpack.config in node_modules and used https://www.npmjs.com/package/patch-package

beepsoft commented 2 years ago

This PR https://github.com/mobxjs/mst-gql/pull/367 hopefully solves it. Not published on NPM yet.