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

ShallowRef should be exported #5025

Closed
sxzz opened this issue Nov 30, 2021 · 0 comments · Fixed by #5026
Closed

ShallowRef should be exported #5025

sxzz opened this issue Nov 30, 2021 · 0 comments · Fixed by #5026

Comments

@sxzz
Copy link
Member

sxzz commented Nov 30, 2021

Version

3.2.23

Reproduction link

github.com

Steps to reproduce

import { defineComponent, shallowRef } from 'vue';

const App = defineComponent({
  setup() {
    const foo = shallowRef('bar');
    return {
      foo,
    };
  },
});

export { App };
  • export shallowRef in setup
  • generate dts
  • it emits errors.

(There is no problem with ref.)

What is expected?

emit no error.

What is actually happening?

src/main.ts:3:7 - error TS4023: Exported variable 'App' has or is using name 'ShallowRefMarker' from external module "~/path/vue-types-issue/node_modules/.pnpm/@vue+reactivity@3.2.23/node_modules/@vue/reactivity/dist/reactivity" but cannot be named.

3 const App = defineComponent({
        ~~~


Found 1 error.
@sxzz sxzz changed the title ShallowRefMarker should be exported ShallowRef should be exported Nov 30, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants