-
Notifications
You must be signed in to change notification settings - Fork 178
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
Cannot read properties of undefined (reading 'call') #303
Comments
Can you please provide an isolated reproduction in Codesandbox with no CSS or JS files external to fullPage.js and the minimum amount of HTML code. Use empty sections unless strictly necessary for reproduction. |
As soon as i am importing |
I cant see any error here: Make sure to uses the latest version 0.1.22 |
|
I'd prefer a reproduction in codesandbox :) |
@alvarotrigo same issue with Next js |
Did you take a look at the docs regarding server rendering? |
@alvarotrigo : If I am using the latest version then I am getting that error |
Interesting... do you have any URL or codesandbox I can check? |
The Next demo seems to be working just fine: So not quite sure how to reproduce this error on my side. I'll wait for a reproduction before closing the issue. |
@ankitsinghaniyaz any idea what can this be? |
@muhammadmahad-debug you can revert back to the previous version 0.1.18 while we investigate the issue. |
@cskovgaard doesn't seem to be related with the issue discussed on this topic. Probably a types issue? |
@cskovgaard just run the command npm i --save-dev @types/fullpafe__react-fullpage |
@sumeet030990, unfortunately no, that package does not exist. I was able to resolve the original issue, using version 0.1.22, after migrating my Nx-setup to the latest version. Hope this can be helpful to others experiencing this problem. |
@alvarotrigo I've also encountered this error, it seems like compatibility with Webpack 4 was lost in version Here is how I was able to reproduce the error: npx create-react-app --scripts-version=4.0.0 react-fullpage-crash-test
cd react-fullpage-crash-test
npm install @fullpage/[email protected]
# add the import to src/App.js
echo -e "import ReactFullpage from '@fullpage/react-fullpage';\n$(cat src/App.js)" > src/App.js
npm start |
@pl12133 any solution in mind? |
For now I think it would be enough to recommend Webpack 4 users only install I gave this a try for an hour today and messed around with the I will give this another look but my app will soon be updating to Webpack 5 and that may be how we solve this on my side. |
@pl12133 noted! Thanks 👍 |
@alvarotrigo I just resolved this issue by upgrading react-scripts to V5 |
Thanks for letting us know @muhammadmahad-debug ! 👍 |
@alvarotrigo Can you please release package with CARD and CARTOPTION as optional props or I can create PR for you I need it so do this ASAP |
@muhammadmahad-debug done! New version 0.1.23 |
Hi, i'm trying to use react Fullpage but it does not work. Once installed, I had the same issue as op, so i used "@fullpage/react-fullpage": "^0.1.19", now I have no more error except the message in console telling me to use the licenseKey prop. Weird because I had setup this with my newly purchased license. any idea ? thanks
|
Try updating to the latest version react-fullpage 0.1.27 |
Thanks for the very fast response, but has I said if I use the last version same message as op is displayed. there is no work around beside update webpack ? |
@FrancoisSoler It seems like so. |
thanks for your help |
@alvarotrigo my current package.json looks like OS : Windows 10 |
@Bilal-Bangash, try updating your version of react-scripts to 4+ |
|
Getting error
with little debugging found out that in render method
state: {}
fullpageApi: undefined
The text was updated successfully, but these errors were encountered: