Issue 1:
It seems that there are errors with the latest version of igniteui-full and react 17.
For example running the ig-grid sample would throw the following error:
TypeError: Cannot assign to read only property 'dataSource' of object '#<Object>'
Issue 2:
Furthermore, the standalone samples are referring to non production files. Take a look at the igGrid.html, for example. It has the following script references:
<script src="https://cdn.jsdelivr.net/gh/IgniteUI/igniteui-react-wrappers/src/util/ignite-react.js"></script>
<script src="https://cdn.jsdelivr.net/gh/IgniteUI/igniteui-react-wrappers/src/components/igGrid.js"></script>
<script src="https://cdn.jsdelivr.net/gh/IgniteUI/igniteui-react-wrappers/src/components/igTextEditor.js"></script>
<script src="https://cdn.jsdelivr.net/gh/IgniteUI/igniteui-react-wrappers/src/components/igNumericEditor.js"></script>
<script src="https://cdn.jsdelivr.net/gh/IgniteUI/igniteui-react-wrappers/src/components/igDialog.js"></script>
<script src="https://cdn.jsdelivr.net/gh/IgniteUI/igniteui-react-wrappers/src/components/igButton.js"></script>
<script src="https://cdn.jsdelivr.net/gh/IgniteUI/igniteui-react-wrappers/src/props/igGrid.js"></script>
<script src="https://cdn.jsdelivr.net/gh/IgniteUI/igniteui-react-wrappers/src/props/igTextEditor.js"></script>
<script src="https://cdn.jsdelivr.net/gh/IgniteUI/igniteui-react-wrappers/src/props/igNumericEditor.js"></script>
<script src="https://cdn.jsdelivr.net/gh/IgniteUI/igniteui-react-wrappers/src/props/igDialog.js"></script>
<script src="https://cdn.jsdelivr.net/gh/IgniteUI/igniteui-react-wrappers/src/props/igButton.js"></script>
After building the react wrappers library, the contents of all props-files are merged into the igniteui-react.js file, so they should not be referred to directly.
|
"build": "npm run prepare-dist", |
|
"prepare-dist": "uglifyjs src/props/* -b -o dist/npm/igniteui-react.js && node -e \"require('concat-files')(['build/build-wrapper-start','dist/npm/igniteui-react.js','build/build-wrapper-end'], 'dist/npm/igniteui-react.js');\" && uglifyjs src/util/* dist/npm/igniteui-react.js -b -o dist/npm/igniteui-react.js && node -e \"require('fs-extra').ensureDirSync('dist/npm/ui');require('fs-extra').copySync('src/components', 'dist/npm/ui');require('fs-extra').ensureDirSync('dist/npm/dist');\" && uglifyjs dist/npm/igniteui-react.js src/components/* -b -o dist/npm/dist/igniteui-react.js && uglifyjs dist/npm/dist/igniteui-react.js -o dist/npm/dist/igniteui-react.min.js", |
Besides that, the ignite-react.js file does not exist when creating a release build. In order to completely avoid any further build issues, refer to #124.
This is regressed after v "21.1.11", as with it the samples work and are only throwing
Warning: Failed prop type: Invalid prop value of type string supplied to <<anonymous>>, expected object.
For comparison, under 21.1.25 / 21.2.9 the errors are:
Warning: Failed prop type: Invalid prop value of type string supplied to <<anonymous>>, expected object.
infragistics.lob.js:22016 --> Uncaught TypeError: Cannot assign to read only property 'dataSource' of object '#'
igniteui-react.js:75 --> Uncaught TypeError: $(...)[component.widgetName] is not a function
Issue 1:
It seems that there are errors with the latest version of igniteui-full and react 17.
For example running the ig-grid sample would throw the following error:
TypeError: Cannot assign to read only property 'dataSource' of object '#<Object>'Issue 2:
Furthermore, the standalone samples are referring to non production files. Take a look at the
igGrid.html, for example. It has the following script references:After building the react wrappers library, the contents of all props-files are merged into the
igniteui-react.jsfile, so they should not be referred to directly.igniteui-react-wrappers/package.json
Lines 17 to 18 in 000b452
Besides that, the
ignite-react.jsfile does not exist when creating a release build. In order to completely avoid any further build issues, refer to #124.This is regressed after v "21.1.11", as with it the samples work and are only throwing
Warning: Failed prop type: Invalid prop
valueof typestringsupplied to<<anonymous>>, expectedobject.For comparison, under 21.1.25 / 21.2.9 the errors are:
Warning: Failed prop type: Invalid prop
valueof typestringsupplied to<<anonymous>>, expectedobject.infragistics.lob.js:22016 --> Uncaught TypeError: Cannot assign to read only property 'dataSource' of object '#'
igniteui-react.js:75 --> Uncaught TypeError: $(...)[component.widgetName] is not a function