praella-agency / polaris-vue

Polaris Vue by HulkApps is a component library for Vue.js based on Shopify Polaris style guide.
https://polaris-vue.hulkapps.com
MIT License
37 stars 10 forks source link

The Polaris-vue can't work! #86

Closed TTDream30 closed 2 years ago

TTDream30 commented 2 years ago

Hello, Our team found a major error in using your project. This is my code to quote your project: ----main.js---- import Vue from 'vue'; import '@hulkapps/polaris-vue/dist/polaris-vue.min.js'; import '@hulkapps/polaris-vue/dist/polaris-vue.ssr.js'; import '@hulkapps/polaris-vue/dist/polaris-vue.esm.js'; import PolarisVue from '@hulkapps/polaris-vue'; import '@hulkapps/polaris-vue/dist/polaris-vue.min.css'; Vue.use(PolarisVue);

But there was a error when we used it, the error message in console is "Uncaught ReferenceError: Cannot access '__vue_component__$t' before initialization". This error only occurs when we reference the code "import '@hulkapps/polaris-vue/dist/polaris-vue.esm.js';" We guess maybe this file have somthing wrong. Please solve it as soon as possible!!!

saurabh-sali-hulkapps commented 2 years ago

@TTDream30 You have used all our builds, try to use only one build at a time.

TTDream30 commented 2 years ago

Thank you. But I have another question. I think your instance document is not eligible. When I copy code from your document, it's only style effects, no related events. I need to read your source code to find the events about the component. For example, I copy the "ColorPicker" component,your code in the document is :

<template>   <PStack vertical="">     <PStackItem>       <PColorPicker label="Color Picker" id="color-picker" color="#FF0000" />     </PStackItem>     <PStackItem><PBadge color="#FF0000">#FF0000</PBadge></PStackItem>   </PStack> </template>But you know that, it's not work if I copy the code. The color can't change. I try to change the code like that: <PStackItem>     <PColorPicker        label="Star color"        id="color-picker"        :color="starColor"     /> </PStackItem>

It still have nothing change. I think a good document should have a one rule at least.It's the effect of the code is the same as the effect of the case. Thanks to read my words. Wish you better.

saurabh-sali-hulkapps commented 2 years ago

We are working on that to provide source code.

TTDream30 commented 2 years ago

We are working on that to provide source code.

OK. Your kind early reply will be highly appreciated