Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0047890 | Openbravo ERP | A. Platform | public | 2021-10-20 09:37 | 2022-02-01 08:07 |
Reporter | jarmendariz | ||||
Assigned To | Triage Platform Base | ||||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | new | Resolution | open | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | |||||
Review Assigned To | |||||
OBNetwork customer | |||||
Web browser | |||||
Modules | Core | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0047890: Upgrade ESLint to version 8.x.x | ||||
Description | Recently a new major version of ESLint have been published. Amont many improvements, bugfixes, there are a number of breaking changes listed here https://eslint.org/docs/8.0.0/user-guide/migrating-to-8.0.0 [^] | ||||
Steps To Reproduce | Upgrade ESLint and related plugins to their latest version and notice the new errors that appear when running the jslint script. At the moment of writing, running this script in a POS2 environment the following errors appears: - Most modules has errors related to tests (jest/prefer-to-be, jest/expect-expect, jest/valid-title) - POS2 module shows this error message in several files: Parsing error: Must use import to load ES Module: /home/openbravo/Projects/pos2/openbravo/node_modules/eslint/node_modules/eslint-scope/lib/definition.js require() of ES modules is not supported. require() of /home/openbravo/Projects/pos2/openbravo/node_modules/eslint/node_modules/eslint-scope/lib/definition.js from /home/openbravo/Projects/pos2/openbravo/node_modules/babel-eslint/lib/require-from-eslint.js is an ES module file as it is a .js file whose nearest parent package.json contains "type": "module" which defines all .js files in that package scope as ES modules. Instead rename definition.js to end in .cjs, change the requiring code to use import(), or remove "type": "module" from /home/openbravo/Projects/pos2/openbravo/node_modules/eslint/node_modules/eslint-scope/package.json - The following error appears in core2: Error: Rules with suggestions must set the `meta.hasSuggestions` property to `true`. Occurred while linting /home/openbravo/Projects/pos2/openbravo/modules/org.openbravo.core2/web-jspack/org.openbravo.core2/src/components/BaseKeymap/stories/BaseKeymap.stories.jsx:142 Rule: "react-hooks/exhaustive-deps" | ||||
Proposed Solution | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2021-10-20 09:37 | jarmendariz | New Issue | |||
2021-10-20 09:37 | jarmendariz | Assigned To | => platform | ||
2021-10-20 09:37 | jarmendariz | Modules | => Core | ||
2021-10-20 09:37 | jarmendariz | Triggers an Emergency Pack | => No | ||
2022-02-01 08:07 | alostale | Assigned To | platform => Triage Platform Base |
There are no notes attached to this issue. |