-
Notifications
You must be signed in to change notification settings - Fork 21
Fresh install does not work without Yarn #50
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
Comments
Did a similar process on macOS (note |
Here's the version from Windows https://github.com/trajano/learn-vn/tree/windows-no-yarn |
I installed ❯ yarn --version And redid the process and it works. https://github.com/trajano/learn-vn/tree/windows-with-yarn Short of the lock file differences and minor version indicator differences in package.json
I don't see any other differences as to why one would work but not the other. |
This seems to be a duplicate of GeekyAnts/vue-native-core#317 The error is caused by the const vueNativeScripts = require("vue-native-scripts");
const upstreamTransformer = require("metro-react-native-babel-transformer");
const vueExtensions = ["vue"]; // <-- Add other extensions if needed.
module.exports.transform = function ({ src, filename, options }) {
if (vueExtensions.some(ext => filename.endsWith("." + ext))) {
return vueNativeScripts.transform({ src, filename, options });
}
return upstreamTransformer.transform({ src, filename, options });
}; You may need to clear the Expo cache before running the app again. expo r -c |
Will this be released soon |
This has been released with v0.3.0 You can also manually edit the file in an existing project to fix the error |
Description of the bug
I followed the guide in https://vue-native.io/docs/installation.html#For-Expo-users
To Reproduce
Steps to reproduce the behavior:
vue-native init learn-vn
cd learn-vn
npm start
What I expected
App to appear on expo
Screenshots

Did I use
vue-native-cli
to create the project?Yes
Am I using Expo?
Yes
vue-native init <projectName>
then yesvue-native init <projectName> --no-expo
, then noDevelopment platform (please complete the following information):
❯ expo --version
4.7.3
❯ npm --version
6.14.4
❯ node --version
v12.18.0
The device on which I run my Vue Native app
The text was updated successfully, but these errors were encountered: