refi64 / vuedart

Create Vue web apps in Dart
https://refi64.com/vuedart
310 stars 19 forks source link

VueMaterial.registerTheme Throws an require.js:143 Uncaught TypeError: Cannot read property 'registerTheme' of undefined #33

Open kingdevnl opened 5 years ago

kingdevnl commented 5 years ago

When calling VueMaterial.registerTheme(name, Theme); it will throw the error: Throws an require.js:143 Uncaught TypeError: Cannot read property 'registerTheme' of undefined

refi64 commented 5 years ago

Did you run VueMaterial.use() first? Have you checked to make sure you're loading the VueMaterial JS before your Dart code?

kingdevnl commented 5 years ago

What is the correct order for the scripts in the index.html?

refi64 commented 5 years ago

Normally it'd be:

kingdevnl commented 5 years ago

Mmm, thats what i got, and it still shows the error, do you have discord?

tobytraylor commented 5 years ago

I just ran into this and it was fixed when i reverted the libraries to <script src="https://unpkg.com/vue-material@0.7.5"></script>

kingdevnl commented 5 years ago

Will try, I never got it to work myself on the last version