-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Errors when importing DeferredContent, Inplace and Chart #942
Comments
Please try the latest PrimeReact version. Similar issue; #913 Best Regards, |
Thank for the quick reply. I looked for the line that was mentioned in the post, but I couldn't find it.
which I changed to:
The error still appears:
I noted that the version used by OP in #913 is 2.0.1, and I'm using version 3.0.0. |
Actually nevermind, I reinstalled chart.js again, and it worked for some reason. However there are still the erros when importing Inplace and DeferredContent. Could you help me with those aswell? |
Thanks a lot for the update! Please use |
We don't have a shortcut for inplace. For now, please use; I'll fix it for next release. |
Issue #943 Best Regards, |
There is no guarantee in receiving an immediate response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeReact PRO Support where support is provided within 4 business hours
I'm submitting a ... (check one with "x")
Codesandbox Case (Bug Reports)
Please fork the codesandbox below and create a case demonstrating your bug report. Issues without a codesandbox have much less possibility to be reviewed.
https://codesandbox.io/s/primereact-test-nlegb
Current behavior
I'm experiencing the bugs described below in any project that I use PrimeReact. Currently I'm trying to use the quickstart project. I have posted this in the quickstart github but I noticed that there are very few posts there. I have imported these same features on other starter projects and recieved the same errors. I tried cloning the quickstart and the errors kept coming so I will post the same thing I posted in the quickstart github page.
NodeJS version: 10.15.1
Primereactimport.js is a file I created with all the exports for primereact. I know it is not recomended but I'm doing this to ease my learning into primereact. The contents of the file are at the end of this message.
I had problems with fullcalendar, inplace, but currently the bug says this:
Upon inspecting my node_modules folder, there is no "deferedcontent" inside, which triggers the error.
Line that calls DeferredContent:
##################################################
If I comment the line that exports the DefferedContent, I get this error:
In this case there is a folder inside primereact/component/chat, with a Chat.js file inside. I have manually installed chat.js as described in my package.json file below.
Line that calls Chart:
Solution:
Following the steps on #913 and reinstalling chart.js did the trick.
##################################################
If I also comment the Chart line, I get an error with Inplace:
Line that calls Inplace:
##################################################
If I comment all these lines, the project compiles.
This is my ** package.json** file:
Primereactimport.js is a file I created with all the exports for primereact. I know it is not recomended but I'm doing this to ease my learning into primereact.
Expected behavior
I would like the project to build fully.
Minimal reproduction of the problem with instructions
Simply installed ReactJS from the official guide, using chocolatey, then cloning the react-quickstart repository. After that, installing the dependencies with npm install --save and npm start to run.
Please tell us about your environment:
Windows 10,
VSCode
Behind a proxy but I have access through it as I'm a developer in my company.
React version:
As stated in my package.json file, the version for ReactJS is 16.8.6
PrimeReact version:
As stated in my package.json file, the version for PrimeReact is 3.0.0
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
Currently only tested in Google Chrome
Language: [all | TypeScript X.X | ES6/7 | ES5]
ES6 only
The text was updated successfully, but these errors were encountered: