Git Product home page Git Product logo

vue-stage-play's People

Contributors

f820602h avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

vue-stage-play's Issues

Unable to configure the library in Vue 2

Hello :)

I am unable to configure the guide to work in Vue 2. Here is what I receive:

Module parse failed: Unexpected token (1:8822)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
.....
{t.provide(D,e||{}),t.component("StagePlayScene",_e),t.component("StagePlaySpotlight",Oe)}}}export{_e as StagePlayScene,Oe as StagePlaySpotlight,Ue as stagePlayPlugin,Ke as useStagePlay};
...
e&type=script&lang=js&
 @ ./src/App.vue?vue&type=script&lang=js&
 @ ./src/App.vue
 @ ./src/main.js
 @ multi (webpack)-dev-server/client?http://192.168.50.167:3000&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js

It is a quite long error message in the compiler. I am using it as follows:

<template>
	<StagePlaySpotlight>
		<v-card>
			<top-header v-if="header.showHeader" />

			<v-navigation-drawer v-if="showNavigation" v-model="drawer" permanent app>
				<button @click="callAction('basic')">Start</button>

				<v-list nav dense>
					<v-list-item-group class="list-item-group" :value="selectedItem" color="primary">
						<StagePlayScene
							:act-name="'basic'"
							:scene="1"
							:voice-over-title="'Step1'"
							:voice-over-content="'Open the door of the refrigerator.'"
						>
							<v-list-item
								v-for="(item, index) in navigationItems"
								:key="index"
								:class="`tour-guide-${index + 1}`"
								class="list-item-style"
								link
								@click="navigate(item.route)"
							>
								<v-list-item-icon class="list-item-icon">
									<v-icon class="item-icon" color="primary">{{ item.icon }}</v-icon>
								</v-list-item-icon>
								<v-list-item-title class="list-item-title" color="primary">{{ $t(item.label) }}</v-list-item-title>
							</v-list-item>
						</StagePlayScene>
					</v-list-item-group>
				</v-list>
			</v-navigation-drawer>
		</v-card>
	</StagePlaySpotlight>
</template>

The script:

<script>
	import { mapState, mapGetters, mapActions } from 'vuex'
	import { StagePlaySpotlight, StagePlayScene, useStagePlay } from 'vue-stage-play'

	import Header from './Header'

	const { action } = useStagePlay()

	export default {
		name: 'Navigation',
		components: {
			'top-header': Header,
			StagePlaySpotlight,
			StagePlayScene
		},
		...
		methods: {
			...
			callAction(actionMethod) {
				action(actionMethod)
			}
		}
	}
</script>

Am I doing something wrong with the configuration or it does not work with Vue 2 ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.