Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STRWEB-61 Lock enhanced-resolve to ~5.10.0 #81

Merged
merged 2 commits into from
Nov 23, 2022
Merged

Conversation

mkuklis
Copy link
Contributor

@mkuklis mkuklis commented Nov 22, 2022

Platform complete is currently failing with:

https://jenkins-aws.indexdata.com/job/Automation/job/build-platform-complete-snapshot/13912/consoleText

This is due to the issue with enhanced-resolve v5.11.0 (thank you @zburke for pointing to it):

webpack/enhanced-resolve#362

This PR locks enhanced-resolve to "~5.10.0" it also upgrades ts-loader to make sure a single version of enhanced-resolve is used in the dependency tree.

Fixes STRWEB-61

@mkuklis mkuklis requested a review from zburke November 22, 2022 19:02
@github-actions
Copy link

github-actions bot commented Nov 22, 2022

Jest Unit Test Statistics

0 tests  ±0   0 ✔️ ±0   0s ⏱️ ±0s
0 suites ±0   0 💤 ±0 
0 files   ±0   0 ±0 

Results for commit 9cf41dc. ± Comparison against base commit fa88325.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Nov 22, 2022

BigTest Unit Test Statistics

73 tests  ±0   73 ✔️ ±0   0s ⏱️ ±0s
39 suites ±0     0 💤 ±0 
  1 files   ±0     0 ±0 

Results for commit 9cf41dc. ± Comparison against base commit fa88325.

♻️ This comment has been updated with latest results.

@zburke
Copy link
Member

zburke commented Nov 22, 2022

@ncovercash, @JohnC-80: does anything spring to mind we should know about upgrading ts-loader from v8 to v9, e.g. do we need to sync this change with the @typescript-eslint libraries in eslint-config-stripes?

@ncovercash
Copy link
Member

@zburke I can't think of anything, the TS eslint can be maintained separately

package.json Outdated
"webpack": "^5.58.1"
"webpack": "^5.75.0"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mkuklis, stripes-cli can't satisfy this because it's pinned to ~5.68.0 due to PR folio-org/stripes-cli#284. I know you said this build was successful locally. Did you try running karma/BTOG tests in any repo with this change in place?

How I would looooooove for this to be BTOG's death knell. If only it were so easy.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zburke I haven't tried that. Let me just put it back to what it was and we can merge it.

@mkuklis mkuklis requested a review from zburke November 22, 2022 23:07
@zburke zburke changed the title Lock enhanced-resolve to ~5.10.0 STRWEB-61 Lock enhanced-resolve to ~5.10.0 Nov 23, 2022
@zburke zburke merged commit dbc1439 into master Nov 23, 2022
@zburke zburke deleted the enhanced-resolve-lock branch November 23, 2022 03:18
zburke added a commit to folio-org/platform-complete that referenced this pull request Nov 23, 2022
Avoid the buggy 5.11.0 release that appears to be incompatible with
webpack-virtual-modules. Additional details at
folio-org/stripes-webpack#81.

Refs STRWEB-61
dcrossleyau added a commit to folio-org/platform-minimal that referenced this pull request Nov 23, 2022
Avoid the buggy 5.11.0 release that appears to be incompatible with
webpack-virtual-modules. Additional details at
folio-org/stripes-webpack#81.

Refs STRWEB-61
zburke pushed a commit that referenced this pull request Nov 23, 2022
Platform complete is currently failing due to an issue with enhanced-resolve v5.11.0 (thank you @zburke for pointing to it): webpack/enhanced-resolve#362

This PR locks `enhanced-resolve` to "~5.10.0" it also upgrades `ts-loader` to make sure a single version of enhanced-resolve is used in the dependency tree.

Errors from https://jenkins-aws.indexdata.com/job/Automation/job/build-platform-complete-snapshot/13912/consoleText look like
```
"WARNING" in ": "./node_modules/@folio/stripes-core/src/components/ModuleTranslator/ModuleTranslator.js" "29:14-33"
": "export 'originalModules' (imported as 'originalModules') was "not found"": " in '../../ModulesContext' (possible exports: "ModulesContext, default, useModules"": ")"
 @ ./node_modules/@folio/stripes-core/src/components/ModuleTranslator/index.js 1:0-45 1:0-45
 @ ./node_modules/@folio/stripes-core/src/components/index.js 12:0-65 12:0-65
 @ ./node_modules/@folio/stripes-core/index.js 28:0-107 28:0-107 28:0-107 28:0-107 28:0-107
 @ ./node_modules/@folio/stripes-ui/src/index.js 1:0-43 2:0-4

"WARNING" in ": "./node_modules/@folio/stripes-core/src/components/ModuleTranslator/ModuleTranslator.js" "30:17-39"
": "export 'originalModules' (imported as 'originalModules') was "not found"": " in '../../ModulesContext' (possible exports: "ModulesContext, default, useModules"": ")"
 @ ./node_modules/@folio/stripes-core/src/components/ModuleTranslator/index.js 1:0-45 1:0-45
 @ ./node_modules/@folio/stripes-core/src/components/index.js 12:0-65 12:0-65
 @ ./node_modules/@folio/stripes-core/index.js 28:0-107 28:0-107 28:0-107 28:0-107 28:0-107
 @ ./node_modules/@folio/stripes-ui/src/index.js 1:0-43 2:0-4

"WARNING" in ": "./node_modules/@folio/stripes-core/src/components/ModuleTranslator/ModuleTranslator.js" "31:19-43"
": "export 'originalModules' (imported as 'originalModules') was "not found"": " in '../../ModulesContext' (possible exports: "ModulesContext, default, useModules"": ")"
 @ ./node_modules/@folio/stripes-core/src/components/ModuleTranslator/index.js 1:0-45 1:0-45
 @ ./node_modules/@folio/stripes-core/src/components/index.js 12:0-65 12:0-65
 @ ./node_modules/@folio/stripes-core/index.js 28:0-107 28:0-107 28:0-107 28:0-107 28:0-107
 @ ./node_modules/@folio/stripes-ui/src/index.js 1:0-43 2:0-4

"WARNING" in ": "./node_modules/@folio/stripes-core/src/components/ModuleTranslator/ModuleTranslator.js" "32:18-41"
": "export 'originalModules' (imported as 'originalModules') was "not found"": " in '../../ModulesContext' (possible exports: "ModulesContext, default, useModules"": ")"
 @ ./node_modules/@folio/stripes-core/src/components/ModuleTranslator/index.js 1:0-45 1:0-45
 @ ./node_modules/@folio/stripes-core/src/components/index.js 12:0-65 12:0-65
 @ ./node_modules/@folio/stripes-core/index.js 28:0-107 28:0-107 28:0-107 28:0-107 28:0-107
 @ ./node_modules/@folio/stripes-ui/src/index.js 1:0-43 2:0-4

"ERROR" in ": "./node_modules/@folio/stripes-core/src/App.js" "20:0-62"
": "Module "not found"": ": "Error"": ": Can't resolve 'stripes-config' in '/home/jenkins/workspace/Automation/build-platform-complete-snapshot/node_modules/@folio/stripes-core/src'"
 @ ./node_modules/@folio/stripes-core/src/init.js 5:0-24 8:28-31
 @ ./node_modules/@folio/stripes-core/index.js 35:0-45 35:0-45
 @ ./node_modules/@folio/stripes-ui/src/index.js 1:0-43 2:0-4

...
```

Fixes STRWEB-61
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants