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

Identifier '_unref' has already been declared #14845

Closed
baixiaoyu2997 opened this issue Sep 8, 2022 · 4 comments · Fixed by vuejs/core#6664
Closed

Identifier '_unref' has already been declared #14845

baixiaoyu2997 opened this issue Sep 8, 2022 · 4 comments · Fixed by vuejs/core#6664
Assignees

Comments

@baixiaoyu2997
Copy link
Contributor

Environment

  • Operating System: Darwin
  • Node Version: v16.15.0
  • Nuxt Version: 3.0.0-rc.9
  • Nitro Version: 0.5.1
  • Package Manager: pnpm@7.9.0
  • Builder: vite
  • User Config: target, components
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://codesandbox.io/s/lpz45n

Describe the bug

in repro , just run yarn generate,will show error logs, i posted the log below

Additional context

No response

Logs

ℹ Building server...                                                                                                                                              17:07:25

 WARN  Error when using sourcemap for reporting an error: Can't resolve original location of error.                                                               17:07:26


 ERROR  Identifier '_unref' has already been declared (Note that you need plugins to import files that are not JavaScript)                                        17:07:26
file: /Users/l.rain/Documents/workspace/DEMO/deorder-copy/components/form/Select.vue:2:62
1: import { computed } from 'vue';
2: import { unref as _unref, mergeProps as _mergeProps, unref as _unref } from "vue"
                                                                 ^
3: import { ssrRenderAttrs as _ssrRenderAttrs } from "vue/server-renderer"


 ERROR  Identifier '_unref' has already been declared (Note that you need plugins to import files that are not JavaScript)                                        17:07:26

  at error (node_modules/.pnpm/rollup@2.77.3/node_modules/rollup/dist/es/shared/rollup.js:1858:30)
  at Module.error (node_modules/.pnpm/rollup@2.77.3/node_modules/rollup/dist/es/shared/rollup.js:12412:16)
  at Module.tryParse (node_modules/.pnpm/rollup@2.77.3/node_modules/rollup/dist/es/shared/rollup.js:12789:25)
  at Module.setSource (node_modules/.pnpm/rollup@2.77.3/node_modules/rollup/dist/es/shared/rollup.js:12694:24)
  at ModuleLoader.addModuleSource (node_modules/.pnpm/rollup@2.77.3/node_modules/rollup/dist/es/shared/rollup.js:22136:20)

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Copy link
Member

cc: @antfu

@Hironogawa
Copy link

Any update on this?

@LucaMargadant
Copy link

Any update on this?

It seems like the error shows up when you use v-bind() in your stylesheets.
After removing them all and binding the styles directly to the DOM Element i've been able to build the app.

Maybe this helps anyone to locate the error.

@antfu
Copy link
Member

antfu commented Sep 23, 2022

Fix pr already made last week vuejs/core#6664

@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants