3.0.0-rc.3
https://github.com/ruanltbg/vue-ui-bug
On terminal run:
$ vue ui
On the browser
To create a project successfully
$ vue ui
๐ Starting GUI...
๐ Ready on http://localhost:8000
Vue CLI v3.0.0-rc.3
โจ Creating project in /Users/ruan/workspace/projects/another-project.
๐ Initializing git repository...
โ Installing CLI plugins. This might take a while...
> [email protected] install /Users/ruan/workspace/projects/another-project/node_modules/fsevents
> node install
[fsevents] Success: "/Users/ruan/workspace/projects/another-project/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile
> [email protected] install /Users/ruan/workspace/projects/another-project/node_modules/nodent-runtime
> node build.js
## Built /Users/ruan/workspace/projects/another-project/node_modules/nodent-runtime/dist/index.js
> [email protected] install /Users/ruan/workspace/projects/another-project/node_modules/yorkie
> node bin/install.js
setting up Git hooks
done
added 1549 packages from 1195 contributors and audited 13684 packages in 32.041s
found 0 vulnerabilities
๐ Invoking generators...
๐ฆ Installing additional dependencies...
> [email protected] install /Users/ruan/workspace/projects/another-project/node_modules/node-sass
> node scripts/install.js
Cached binary found at /Users/ruan/.npm/node-sass/4.9.0/darwin-x64-64_binding.node
> [email protected] postinstall /Users/ruan/workspace/projects/another-project/node_modules/node-sass
> node scripts/build.js
Binary found at /Users/ruan/workspace/projects/another-project/node_modules/node-sass/vendor/darwin-x64-64/binding.node
Testing binary
Binary is fine
added 133 packages from 125 contributors and audited 14952 packages in 13.743s
found 9 moderate severity vulnerabilities
run `npm audit fix` to fix them, or `npm audit` for details
โ Running completion hooks...error: Unable to resolve path to module '@/components/HelloWorld.vue' (import/no-unresolved) at another-project/src/views/Home.vue:10:24:
8 | <script>
9 | // @ is an alias to /src
> 10 | import HelloWorld from '@/components/HelloWorld.vue';
| ^
11 |
12 | export default {
13 | name: 'home',
error: Unable to resolve path to module '@/components/HelloWorld.vue' (import/no-unresolved) at another-project/tests/unit/HelloWorld.spec.js:3:24:
1 | import { expect } from 'chai';
2 | import { shallowMount } from '@vue/test-utils';
> 3 | import HelloWorld from '@/components/HelloWorld.vue';
| ^
4 |
5 | describe('HelloWorld.vue', () => {
6 | it('renders props.msg when passed', () => {
2 errors found.
Error: Process exited with code 1
at exports.exit (/Users/ruan/workspace/projects/another-project/node_modules/@vue/cli-shared-utils/lib/exit.js:7:11)
at lint (/Users/ruan/workspace/projects/another-project/node_modules/@vue/cli-plugin-eslint/lint.js:72:5)
at api.onCreateComplete (/Users/ruan/workspace/projects/another-project/node_modules/@vue/cli-plugin-eslint/generator.js:94:24)
at Creator.create (/usr/local/lib/node_modules/@vue/cli/lib/Creator.js:168:13)
at process._tickCallback (internal/process/next_tick.js:68:7)
โ
May be related to:
https://github.com/vuejs-templates/webpack/issues/144
https://github.com/vuejs/vue-cli/issues/422
Removing the airbnb linter worked fine.
Same problem here. Seems the UI and CLI have different logic.
Duplicate of #1611
Solved like this: #2628
Same issue occuring in v2.6.11 of Vue - issue is with '@vue/airbnb'
, removing from .eslintrc.js
seems to be the current temporary workaround.
@michealjroberts I'm using v.2.6.11 with airbnb, installed with @vue/cli
. Got similar error couple times but it's not related to airbnb. I simply used wrong component name. I bet you're having the same problem.
I was having the same issue... In .eslintrc.js
add the rule below
rules: {
'import/extensions': ['error', 'always', { js: 'never', vue: 'never' }],
},
here is my setting in .eslintrc.js
, and it works.
rules: {
// another rules,
'import/extensions': [
'error',
'ignorePackages',
{
js: 'never',
mjs: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never',
vue: 'never',
},
],
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx', '.json', '.vue'],
},
},
},
Most helpful comment
here is my setting in
.eslintrc.js
, and it works.