Skip to content
This repository has been archived by the owner on Dec 6, 2021. It is now read-only.

can not digest the vue single file component (SFC) directly #472

Closed
kenberkeley opened this issue Jul 31, 2018 · 4 comments
Closed

can not digest the vue single file component (SFC) directly #472

kenberkeley opened this issue Jul 31, 2018 · 4 comments
Labels

Comments

@kenberkeley
Copy link

kenberkeley commented Jul 31, 2018

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
Not render the component

If the current behavior is a bug, please provide the steps to reproduce.
image

What is the expected behavior?
Display Hello, world!

If this is a feature request, what is the motivation or use case for changing the behavior?

Please mention other relevant information such as the browser version, Node.js version, Poi version and Operating System.
Windows 10, Chrome 67, Node v9.10.1, poi 10.2.9

@kenberkeley
Copy link
Author

Not working even though el indicated

image

@egoist
Copy link
Owner

egoist commented Jul 31, 2018

that's not how Vue works, create a root Vue instance in a .js file instead:

import Vue from 'vue'
import App from './App.vue'

new Vue({
	el: '#app',
	render: h => h(App)
})

@kenberkeley
Copy link
Author

kenberkeley commented Jul 31, 2018

it might be better to emphasize this in the doc, since date back to the older poi version it should work

also, the official cli supports this feature: https://cli.vuejs.org/guide/prototyping.html

@kenberkeley kenberkeley changed the title Not rendering, only an empty div#app can not digest the vue single file component (SFC) directly Jul 31, 2018
@github-actions
Copy link

github-actions bot commented May 1, 2020

This issue has been marked as Stale, it will be closed in a week if there's no furthur activity.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants