Skip to content
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 on start #1

Closed
andysay opened this issue Oct 15, 2021 · 7 comments · Fixed by #18
Closed

errors on start #1

andysay opened this issue Oct 15, 2021 · 7 comments · Fixed by #18
Assignees
Labels
bug Something isn't working

Comments

@andysay
Copy link

andysay commented Oct 15, 2021

yarn dev is

(node:20464) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use node --trace-warnings ... to show where the warning was created)

yarn build , start > open modal

entry-88973673.mjs:13 [Vue warn]: Component inside renders non-element root node that cannot be animated.

[Vue warn]: inject() can only be used inside setup() or functional components.
[Vue warn]: onMounted is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.
[Vue warn]: onUnmounted is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.
[Vue warn]: onMounted is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.
[Vue warn]: provide() can only be used inside setup().
[Vue warn]: provide() can only be used inside setup().
[Vue warn]: inject() can only be used inside setup() or functional components.
[Vue warn]: inject() can only be used inside setup() or functional components.
TypeError: Cannot read properties of undefined (reading 'show')

@productdevbook productdevbook added the bug Something isn't working label Oct 15, 2021
@productdevbook productdevbook self-assigned this Oct 15, 2021
@productdevbook
Copy link
Owner

productdevbook commented Oct 15, 2021

terminal run npx nuxi info can you send me the result

some problem

@andysay
Copy link
Author

andysay commented Oct 15, 2021

terminal run npx nuxi info can you send me the result

Nuxt project info: 15:35:00


  • Operating System: Windows_NT
  • Node Version: v16.11.0
  • Nuxt Version: 3-3.0.0-27237303.6acfdcd
  • Package Manager: Yarn
  • Bundler: Webpack
  • User Config: build
  • Runtime Modules: -
  • Build Modules: -

@productdevbook
Copy link
Owner

productdevbook commented Oct 15, 2021

/cc: @RobinMalfait problem is @headlessui

  1. yarn dev
  2. http://localhost:3000/modal

nuxt3-app/node_modules/@headlessui/vue/dist/headlessui.esm.js:1

@andysay
Copy link
Author

andysay commented Oct 15, 2021

and on prod server build start we have

317

Nuxt project info: 16:14:16


  • Operating System: Linux
  • Node Version: v14.17.0
  • Nuxt Version: 3-3.0.0-27237303.6acfdcd
  • Package Manager: Yarn
  • Bundler: Webpack
  • User Config: build
  • Runtime Modules: -
  • Build Modules: -

@dacoto97
Copy link

From what I've seen, there are @headlessui things that are not supported by SSR.

@cherylcarpenter
Copy link

same. also the deploy to netlify fails, and yields just a readme file in the copied repo.

@productdevbook productdevbook linked a pull request Oct 23, 2021 that will close this issue
1 task
@productdevbook
Copy link
Owner

This problem has been fixed #18 , but there is a Headless UI bug, I'm waiting for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants