Can't use compeonnt from another file
See original GitHub issueVersion
4.5.10
Reproduction link
https://github.com/kumaresan-subramani/Vue3-template-check
Environment info
"vue": "^3.0.5",
"vue-class-component": "^8.0.0-rc.1",
"vue-template-compiler": "^2.6.11"
"@vue/cli-plugin-babel": "^4.5.10",
"@vue/cli-plugin-eslint": "^4.5.10",
"@vue/cli-service": "^4.5.10",
"@vue/compiler-sfc": "^3.0.5",
"babel-eslint": "^10.1.0",
"eslint": "^6.8.0",
"eslint-plugin-vue": "^7.4.1",
"vue-loader-v16": "^16.0.0-beta.5.4"
Steps to reproduce
- CLone below sample
https://github.com/kumaresan-subramani/Vue3-template-check
-
And give
npm run serve
-
it wont render
helloworld
component -
But it is working fine in below compoent
https://stackblitz.com/edit/vue-s4fpy3?file=package.json
What is expected?
Need to redner compeonnt form another file
What is actually happening?
But it not renderign properly
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Can't import React component from another file - Stack Overflow
I'm new to react and I'm having issues with importing a component from another file. import React from 'react'; import ReactDOM from ...
Read more >Import Components from another file in React | bobbyhadz
To import a component from another file in React, export the component from file `A`, e.g. `export function Button() ... Use the imported...
Read more >Importing Components in React From Other Files - Upmostly
In this article, we will cover how to split React components into different files, and enable them to reference each other.
Read more >Importing and Exporting Components - React Docs
Import it in the file where you'll use the component (using the corresponding technique for importing default or named exports). Here both Profile...
Read more >Publish styles and components – Figma Help Center
Publish styles and components to a library to share them with others, or use them in other files or projects. Browse published styles...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
What issue? I don’t see any errors on my machine. The app renders as expected:
@sodatea ,
node - 10.15.1
it is wokring fine when i use
yarn install
to install node modules