Closed RealSlimMahdi closed 2 years ago
Here is the live sample on our site - https://www.surveyjs.io/Examples/Library?id=custom-widget-barrating&platform=Reactjs&theme=modern and here is the live plunker sample - https://plnkr.co/edit/EahJt56xd9Yruxih
Do they work for you?
Yes, the live sample works, but once I switch to my local page, the Barrating disapears.
It looks like the issue can be somewhere in your code. If you create a live sample illustrating the issue, I could take a look.
When I clone your react repo the narrating star works: https://github.com/surveyjs/surveyjs_react_quickstart.git
But as soon as I switch to the newer version, there is no way to find from where comes the error.
This is the Html generated by the working code:
And the HTML generated by the faulty code:
and My package.json:
{
"name": "ecoav2",
"version": "0.1.0",
"private": true,
"dependencies": {
"@aws-amplify/ui-react": "^0.2.7",
"@fortawesome/fontawesome-free": "^5.13.0",
"@fortawesome/fontawesome-svg-core": "^1.2.28",
"@fortawesome/free-brands-svg-icons": "^5.13.0",
"@fortawesome/free-solid-svg-icons": "^5.13.0",
"@fortawesome/react-fontawesome": "^0.1.9",
"@material-ui/core": "^4.10.0",
"@material-ui/icons": "^4.9.1",
"@reduxjs/toolkit": "^1.1.0",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"aws-amplify": "^3.0.13",
"aws-amplify-react": "^4.1.12",
"axios": "^0.19.2",
"bootstrap": "3.3.7",
"jquery": "3.3.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-redux": "^7.1.3",
"react-router-dom": "^5.2.0",
"react-scripts": "3.4.1",
"survey-creator": "1.7.9",
"survey-pdf": "1.7.9",
"survey-react": "1.7.9",
"surveyjs-widgets": "1.7.9"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
Can you use the compatible version, that works ok?
Can you use the compatible version, that works ok?
Sorry but what is it ?
You wrote that
When I clone your react repo the narrating star works: https://github.com/surveyjs/surveyjs_react_quickstart.git
Am I right that that you have a working version?
But as soon as I switch to the newer version, there is no way to find from where comes the error.
And am I right that you've got an error after switching to the newer version? What is the library you switching the version of? What is the certain version that causes the error? Can you use the version that works ok?
Even in 2022 I see this same issue.
Hi, I try to implement barrating from the quick-start repo of yours, and I cannot manage to have it working when I use the modern template, this is the component:
and this is the json part of interest for the survey: