question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't use compeonnt from another file

See original GitHub issue

Version

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:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sodateacommented, Jun 4, 2021

What issue? I don’t see any errors on my machine. The app renders as expected: image

0reactions
kumaresan-subramanicommented, Jun 4, 2021

@sodatea ,

node - 10.15.1

it is wokring fine when i use yarn install to install node modules

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found