'import/order' errors when building the front end assets
See original GitHub issueIssue Summary
When running npm run build
for the first time, following the Docker Based Development Installation Guide, several errors are shown:
WARNING in ./client/app/pages/alert/index.js
Module Error (from ./node_modules/eslint-loader/index.js):
/home/jc/redash/client/app/pages/alert/index.js
3:1 error `antd/lib/modal` import should occur before import of `@/services/notification` import/order
✖ 1 problem (1 error, 0 warnings)
1 error and 0 warnings potentially fixable with the `--fix` option.
@ [\\/.]test[\\.\/]).)*\.jsx?$ (./client/app/pages sync ^((?![\\/.]test[\\.\/]).)*\.jsx?$) ./alert/index.js
@ ./client/app/config/index.js
@ ./client/app/index.js
@ multi ./client/app/index.js ./client/app/assets/less/main.less ./client/app/assets/less/ant.less
WARNING in ./client/app/visualizations/choropleth/index.js
Module Error (from ./node_modules/eslint-loader/index.js):
/home/jc/redash/client/app/visualizations/choropleth/index.js
7:1 error `angular2react` import should occur before import of `@/lib/value-format` import/order
✖ 1 problem (1 error, 0 warnings)
@ [\\/.]test[\\.\/]).)*\.jsx?$ (./client/app/visualizations sync ^((?![\\/.]test[\\.\/]).)*\.jsx?$) ./choropleth/index.js
@ ./client/app/config/index.js
@ ./client/app/index.js
@ multi ./client/app/index.js ./client/app/assets/less/main.less ./client/app/assets/less/ant.less
WARNING in ./client/app/visualizations/details/DetailsRenderer.jsx
Module Error (from ./node_modules/eslint-loader/index.js):
/home/jc/redash/client/app/visualizations/details/DetailsRenderer.jsx
4:1 error `antd/lib/pagination` import should occur before import of `@/visualizations` import/order
✖ 1 problem (1 error, 0 warnings)
1 error and 0 warnings potentially fixable with the `--fix` option.
@ [\\/.]test[\\.\/]).)*\.jsx?$ (./client/app/visualizations sync ^((?![\\/.]test[\\.\/]).)*\.jsx?$) ./details/DetailsRenderer.jsx
@ ./client/app/config/index.js
@ ./client/app/index.js
@ multi ./client/app/index.js ./client/app/assets/less/main.less ./client/app/assets/less/ant.less
WARNING in ./client/app/visualizations/sunburst/index.js
Module Error (from ./node_modules/eslint-loader/index.js):
/home/jc/redash/client/app/visualizations/sunburst/index.js
3:1 error `angular2react` import should occur before import of `@/lib/visualizations/sunburst` import/order
✖ 1 problem (1 error, 0 warnings)
1 error and 0 warnings potentially fixable with the `--fix` option.
@ [\\/.]test[\\.\/]).)*\.jsx?$ (./client/app/visualizations sync ^((?![\\/.]test[\\.\/]).)*\.jsx?$) ./sunburst/index.js
@ ./client/app/config/index.js
@ ./client/app/index.js
@ multi ./client/app/index.js ./client/app/assets/less/main.less ./client/app/assets/less/ant.less
Are these safe to ignore, or do they indicate a problem we should fix? 😄
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Django import order causing error with default user model on ...
Until I tried to import models from another django app into my overridden custom user model app I had never seen this error....
Read more >Refactor the importing order of imports in the project files - ScholarX ...
The rule of thumb is to keep the import order like this: Built-in; External; Internal ... github.com/sef-global/scholarx-frontend ...
Read more >Enforce a convention in module import order - Gitlab @ CCI
A way to get location (latitude and longitude), elevation, speed and other relevant data from individual satellites from the Starlink ...
Read more >Sorting your imports correctly in React - DEV Community
ESLint comes with an in-built import sorting rules that even they have beneficial properties, it doesn't fit what I need.
Read more >How to Build a Micro Frontend with Webpack's Module ... - Bitovi
The library property has its own set of configuration options that include name and type. Type is the type of library that can...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Interesting. Setting up a new laptop (with OpenSuSE Leap 15.x) tonight, so that’ll be a good chance to see if this happens with that too. Should have further info tonight/tomorrow morning (depending on how it goes). 😉
New error and warning output, from running
npm run build
on a fresh git clone: