-
Notifications
You must be signed in to change notification settings - Fork 190
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
[NEXT.JS] TypeError: Object.defineProperty called on non-object #17
Comments
Hey! |
What version of react do you use? |
Can you try the |
I don't use hooks, but yes I can try. I use the version |
can you update to latest react and try again? |
Where exactly do you import the |
in _app |
👌 Ita working. I will make a PR with some sdditions in the docs about it.
Thanks for your effort.
…On Wed, Apr 10, 2019, 11:20 AM Vitali Zaidman ***@***.***> wrote:
in _app
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB5_OW4worAELfFuI_QWow50t690j36Yks5vffM5gaJpZM4cm_X4>
.
|
instead of PR to docs, make a PR that doesn't runs hooks if the hooks object is not on React so we will support older versions. |
updated the requirement for the library to version >=16.8 |
this still exist |
exists on latest react? |
What polyfill do you use? |
default meteor 1.8.1 sets ? |
please create a sandbox where it happens or: |
can be reopened when more information is provided. |
I'm facing issues using NextJs. I'd tried different ways to do it but always the same results.
Even in build mode and dev mode, the issue is the same just change the file names because of the hashes.
I import React globally, so I don't have to put:
class NameClass extends React.Component
/I also tried to import in different scenarios mentioned in the doc and also using require and import, but didn't work.
I don't have any modifications in babel plugins and etc, but NextJS have their own.
This is preset:
https://github.com/zeit/next.js/blob/canary/packages/next/build/babel/preset.ts
I think that looking into this you can assume if any plugin is causing this issue.
In this screenshot is the issue when I start a server with builded version:
The text was updated successfully, but these errors were encountered: