evoluteur / evolutility-ui-react

Framework for building CRUD UIs for Hasura GraphQL with models rather than code.
https://evoluteur.github.io/evodemo/
GNU Affero General Public License v3.0
113 stars 30 forks source link

script/build fails with file not found #15

Closed david-pfx closed 5 years ago

david-pfx commented 5 years ago

The error is Module not found: Error: Can't resolve 'widgets/PageNotFound.js' in ...

I think the alias in config\webpack.config.dev.js is missing from config\webpack.config.prod.js. I tried fixing that, but then there are more.

david-pfx commented 5 years ago

Added these two aliases:

      widgets: path.resolve(__dirname, '../src/components/widgets/'),
      utils: path.resolve(__dirname, '../src/utils/'),

Now the error is 'failed to minify'.

Failed to minify the code from this file:
        ./node_modules/query-string/index.js:8
Read more here: http://bit.ly/2tRViJ9

I upgraded react-scripts, but it didn't fix the problem. Over to you.

evoluteur commented 5 years ago

I went back to using react-scripts and stopped using webpack aliases. It fixed the issue.