Unable to build app for production using Vue-tour library - vue.js

We are not able to build the app into production. While we run npm run build we get an error, "expected and declaration or statement expected in a jsx file".
Steps to Reproduce:
Install v-tour and setup all tours for testing in local.
run npm run build
check the console for error
Expected behavior:
The app has to properly be built for production without any errors
Desktop (please complete the following information):
OS: Windows 11
Browser : Chrome
Version : 105.0.5195.127
Vue : #vue/cli 4.4.6
Node : 14.19.0
ScreenShots:
I've added an issue in v-tour's github repo

Related

Why am I getting 'Cannot GET' in localhost for Vue npm run serve

I installed Vite build tool for Vue and when I ran it (npm run serve), I got an error that generated the following message
"Missing script: "serve"".
After a little research, I learned that my package.json was missing the serve key.
After I added it ("serve": "vite preview") and ran it, I received the following error in the browser
"Cannot GET /"
preview is for when your app is already built (with npm run build), it's to check the static result. At the end, serve is the name that was used with Vue2's CLI for preview.
If you want to work locally with it, simply run npm run dev.
More info available on Vite's documentation.

Dependency error while creating a Strapi app

While creating a Strapi app using NPM or Yarn I get the following error:
PS: My node and NPM versions are 14.19.1 and 6.14.16 respectively
npx: installed 103 in 10.123s
Creating a quickstart project.
Creating a new Strapi application at /home/user/projects/backend-app.
Creating files.
Error while installing dependencies:
Keep trying!
Oh, it seems that you encountered errors while installing dependencies in your project.
Don't give up, your project was created correctly.
Fix the issues mentioned in the installation errors and try to run the following command:
cd /home/user/projects/backend-app && yarn install

Nuxt: Command 'nuxt' not found - Output directory `dist/` does not exists

I have successfully created a Nuxt.js project with this configuration using the CLI:
Project name: test
Programming language: JavaScript
Package manager: Npm
UI framework: None
Nuxt.js modules: None
Linting tools: None
Testing framework: None
Rendering mode: Single Page App
Deployment target: Static (Static/JAMStack hosting)
Development tools: jsconfig.json
Version control system: Git
The developement server runs properly with npm run dev.
npm run build also runs without errors and tells me that:
Ready to run nuxt generate
But the execution of nuxt generate leads to the error Command 'nuxt' not found. This is strange because nuxt seems to be installed when I execute npm nuxt list.
I first reinstalled just nuxt and then all dependencies after deleting the node_modules/ folder, but the error remains the same. If I just run npm run start it tells me
Nuxt Fatal Error
Error: Output directory `dist/` does not exists, please use
`nuxt generate` before `nuxt start` for static target.
This is strange again because the .nuxt/dist/ folder exists.
Does anyone have an idea what is going wrong?
I have solved the problem. For me it works if I run npm run generate instead of nuxt generate.

Detox build with Expo - "Error: Could not find build script in detox.configurations["ios.sim"].build"

Goal:
I would like to be able to run detox tests for an expo app with Travis.
I created a bare-bones expo app that successfully runs a single detox test on my local machine. After pushing to git and running on Travis, all dependencies install successfully and then the Travis build scripts fail with the following error.
Error:
Error: Could not find build script in detox.configurations["ios.sim"].build
Issue:
It looks like the issue occurs because there isn't a "build" entry in the "ios.sim" configuration for "detox" in package.json. For a non-expo React Native project with detox, the corresponding .xcodeproject or .xxworkspace can be built directly. Expo doesn't have a .xcodeproject or .xcworkspace - what to put for the "build" configuration for an Expo project? While there is an Exponent.the app provided by the expo to run tests with detox, I don't see any .xcodeproject or .xcworkspace to build with.
Repro steps:
Clone git#github.com:bryanboyko/expo-detox-travis-3.git
cd expo-detox-travis-3
npm install
./setup.sh
detox test
push to a new branch and create a PR to see travis build
Travis failure log:
https://travis-ci.com/bryanboyko/expo-detox-travis-3/builds/151879107

npm server fails to start on brand new react native project

I just started on a fresh dev environment with Xcode 7.2.1, and installed react-native (0.20.0). I initialized a test project to see if it would run, and I got the following error:
~/dev/TestProj/node_modules/react-native/packager ~
packager.sh: line 11: node: command not found
The iOS Simulator screen says:
Could not connect to development server.
Ensure the following:
- Node server is running and available on the same network - run 'npm start' from react-native root
- Node server URL is correctly set in AppDelegate
URL: http://localhost:8081/index.ios.bundle?platform=ios&dev=true
Sure enough, if I go into the project folder in a terminal window and run 'npm start' from there, the packager starts and everything works. In my experience the packager should run by itself though when you run a project with React Native. Am I doing something wrong here or is there an issue? Never had this happen with previous versions of RN.
I moved on to trying to get my old project working, and while trying to use npm to add new packages, I added the following to my ~/.profile. I'm guessing this fixed it:
export NPM_DIR="$HOME/.npm" [ -s "$NPM_DIR/npm.sh" ] && . "$NPM_DIR/npm.sh"