You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CSS imports give the following error: 'survey-core' should be listed in the project's dependencies. *(The installation of npm install survey-creator-react --save didn't install survey-creator-core as a dependency)
Module not found: Error: Package path ./survey-core.css is not exported from package /usr/src/app/node_modules/survey-core (see exports field in /usr/src/app/node_modules/survey-core/package.json)
Module not found: Error: Package path ./survey-creator-core.min.css is not exported from package /usr/src/app/node_modules/survey-creator-core (see exports field in /usr/src/app/node_modules/survey-creator-core/package.json)
Expected behavior
After installing npm install survey-creator-react --save and importing styles, the survey creator will function without additional modifications.
Temporary solution
I've manually added the export to survey-core/package.json
Describe the bug
I'm trying to import CSS styles for React Form Builder, and I found a few bugs in the documentation. I'm following the steps from the documentation here: https://surveyjs.io/survey-creator/documentation/get-started-react#install-the-survey-creator-react-npm-package
Steps to reproduce
CSS imports give the following error:
'survey-core' should be listed in the project's dependencies.
*(The installation of
npm install survey-creator-react --save
didn't installsurvey-creator-core
as a dependency)Install the following dependencies manually:
Expected behavior
After installing
npm install survey-creator-react --save
and importing styles, the survey creator will function without additional modifications.Temporary solution
I've manually added the export to
survey-core/package.json
and also same for the
survey-creator-core/package.json
I'm not sure why I need these explicit exports when I can clearly see the global *.css export. But it won't work without them for me.
Please complete the following information:
The text was updated successfully, but these errors were encountered: