-
Notifications
You must be signed in to change notification settings - Fork 272
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
[SF][CheckboxTemplate/JSX-runtime]: Cannot find module '@ui5/webcomponents-base/jsx-runtime' error on version 2.6.0 #10744
Comments
The error when building (missing .js.map) is fixed with #10596 The error in the tests is somewhat different, can't really tell without further info. Can you try if 2.7.0-rc.2 fixes both errors and let me know? |
Hi @pskelin But our test cases are still failing. Seems like there are two issues:
Not sure if we are missing any configurations here. |
In the @ui5/webcomponents-base package.json we have this configuration that is supposed to handle the "exports": {
"./jsx-runtime": "./dist/jsx-runtime.js",
"./jsx-dev-runtime": "./dist/jsx-dev-runtime.js",
... And for the second: import { getEffectiveScopingSuffixForTag } from '@ui5/webcomponents-base/CustomElementsScope.js'; we do reexport of a lot of modules ( including CustomElementsScope) via this index.js file. I suggest we get in contact offline to get the project running.. |
Hi @ilhan007 Thanks, |
Update 1 Failure 1: Cannot find module '@ui5/webcomponents-base/CustomElementsScope.js' from 'node_modules/@ui5/webcomponents-react-base/dist/utils/index.js Solution: Failure 2: Cannot find module '@ui5/webcomponents-base/jsx-runtime' from 'node_modules/@ui5/webcomponents/dist/CheckBoxTemplate.js' Solution: "moduleNameMapper": {
"^@ui5/webcomponents-base/jsx-runtime$": "<rootDir>/node_modules/@ui5/webcomponents-base/dist/jsx-runtime.js"
} Failure 3: TypeError: Cannot read properties of undefined (reading 'states') Solution: |
Update 2: We have released 2.7.1 for all packages on the public npm (including the aforementioned ElementInternals shim for jest/jsdom env), but not available on the internal registry https://int.repositories.cloud.sap/artifactory/api/ Once available:
import "ui5/webcomponents-base/dist/ssr-dom-shim.js"; |
Bug Description
When we upgrade webcomponents to 2.6.X version, and run the build or unit test cases we are getting error as below:
This is happening for multiple components that uses List or table with Multiselect selection mode.
This is a high priority issue for us since we need 2.6.x version to implement the drag and drop feature for our project.
Component Versions:
"@ui5/webcomponents": "^2.6.0",
"@ui5/webcomponents-compat": "~2.6.0",
"@ui5/webcomponents-base": "^2.6.0",
"@ui5/webcomponents-fiori": "^2.6.0",
"@ui5/webcomponents-icons": "^2.4.0",
"@ui5/webcomponents-localization": "~2.4.0",
"@ui5/webcomponents-react": "^2.6.0",
"@ui5/webcomponents-react-compat": "^2.6.0",
While running test cases:
Cannot find module '@ui5/webcomponents-base/jsx-runtime' from 'node_modules/@ui5/webcomponents/dist/CheckBoxTemplate.js'
Require stack:
node_modules/@ui5/webcomponents/dist/CheckBoxTemplate.js
node_modules/@ui5/webcomponents/dist/CheckBox.js
node_modules/@ui5/webcomponents-react/dist/webComponents/CheckBox/index.js
node_modules/@ui5/webcomponents-react/dist/components/AnalyticalTable/pluginHooks/useRowDisableSelection.js
node_modules/@ui5/webcomponents-react/dist/components/AnalyticalTable/pluginHooks/AnalyticalTableHooks.js
node_modules/@ui5/webcomponents-react/dist/index.js
src/utils/pickListFilterUtils.js
src/store/middleware/filtersSlice.js
src/Components/Filters/Filters.js
src/Components/Filters/Filters.test.js
While building:
Failed to parse source map from '/Users/I523602/Desktop/dev/src/recruiting-applicationlist/node_modules/@ui5/webcomponents-base/dist/prod/thirdparty/preact/jsxRuntime.module.js.map' file: Error: ENOENT: no such file or directory, open '/Users/I523602/Desktop/dev/src/recruiting-applicationlist/node_modules/@ui5/webcomponents-base/dist/prod/thirdparty/preact/jsxRuntime.module.js.map'
Can you please let us know on how to resolve these errors?
Affected Component
SF
Expected Behaviour
The test cases and the build should should pass without any issues
Isolated Example
No response
Steps to Reproduce
...
Log Output, Stack Trace or Screenshots
No response
Priority
High
UI5 Web Components Version
2.6.0
Browser
Chrome
Operating System
No response
Additional Context
No response
Organization
No response
Declaration
The text was updated successfully, but these errors were encountered: