Skip to content
This repository was archived by the owner on Dec 5, 2022. It is now read-only.

Fresh build problem on linux #88

Closed
rimonmath opened this issue Sep 19, 2018 · 10 comments
Closed

Fresh build problem on linux #88

rimonmath opened this issue Sep 19, 2018 · 10 comments

Comments

@rimonmath
Copy link

Version

N/A

Reproduction link

https://github.com/nativescript-vue/vue-cli-template

Platform and OS info

Xubuntu 18.04

Steps to reproduce

  1. Create project as git documentation.
  2. cd project-name
  3. npm install
  4. tns run android --bundle

What is expected?

Run fresh project without any error

What is actually happening?

Running the project with error. The error message is like :

ERROR in ./router/index.js Module not found: Error: Can't resolve '../components/Counter'


This error happens for all the components HelloWorld.vue, Counter.vue and Home.vue.
If i write the code with .vue extension like

import Counter from '../components/Counter.vue';

Then another error occurred. It shows error for template tag. Seems vue-loader not configured currectly

@rigor789
Copy link
Member

This may have to do with the broken release we had yesterday. Can you try again with the latest release (2.0.0-rc.0) and let us know if it works for you?

@rimonmath
Copy link
Author

how can I get the code of (2.0.0-rc.0)?

@rigor789
Copy link
Member

npm install should update the package, but if it still uses the old one, change the package.json to use "nativescript-vue": "2.0.0-rc.0"

@rimonmath
Copy link
Author

Thanks!

@rigor789
Copy link
Member

@rimonmath Is the issue solved?

@rimonmath
Copy link
Author

@rigor789 Nope. currently having other problems. main.js file contains error. single quotation is missing on line 3. If I fix it manually, then other error occurs. class not found exception: java.lang.Class.ClassForName.

@rigor789
Copy link
Member

What's on line 3? Also can you include the output for the java.lang.Class.ClassForName exception?

@rimonmath
Copy link
Author

line three is as follow:
import './styles.scss

It should be:
import './styles.scss'

@rigor789
Copy link
Member

Okay, that was also a mistake on our part - fixed in #97 🙄

How about the java.lang.Class.ClassForName exception?

@nativescript-vue-bot
Copy link
Collaborator

We are locking this issue because it has been closed for more than 14 days.

If the issue comes up again please open a new issue with additional details.

@nativescript-vue nativescript-vue locked as resolved and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

3 participants