We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
demo: https://github.com/jackson-yyy/vue-demi-bug-demo
pnpm install
node_modules/lib/v3/index.cjs
var Vue = require('vue') Object.keys(Vue).forEach(function(key) { exports[key] = Vue[key] })
pnpm switch:vue2
var Vue = require('vue') var VueCompositionAPI = require('@vue/composition-api')
i think it's the problem of pnpm. It use symbol link to link file.
i try to delete files under lib before writing file
function copy(name, version, vue) { vue = vue || 'vue' const src = path.join(dir, `v${version}`, name) const dest = path.join(dir, name) let content = fs.readFileSync(src, 'utf-8') content = content.replace(/'vue'/g, `'${vue}'`) + fs.unlinkSync(dest) fs.writeFileSync(dest, content, 'utf-8') }
it works perfectly now.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
demo:
https://github.com/jackson-yyy/vue-demi-bug-demo
reproduce steps
pnpm install
node_modules/lib/v3/index.cjs
, it is correct.pnpm switch:vue2
node_modules/lib/v3/index.cjs
, it becomes the source code of v2. it shouldn't be changed.i think it's the problem of pnpm. It use symbol link to link file.
i try to delete files under lib before writing file
function copy(name, version, vue) { vue = vue || 'vue' const src = path.join(dir, `v${version}`, name) const dest = path.join(dir, name) let content = fs.readFileSync(src, 'utf-8') content = content.replace(/'vue'/g, `'${vue}'`) + fs.unlinkSync(dest) fs.writeFileSync(dest, content, 'utf-8') }
it works perfectly now.
The text was updated successfully, but these errors were encountered: