Thanks for that @Arkshine. My laptop died when a replacement charger fried the charging circuit, so i wasn’t able to test it out until i was able to repair the laptop yesterday.
I put the import statement at the top of the page and your code underneath but seem to be hitting syntax errors when i try to add that or similar variations of it:
Visual Basic Studio finds these errors:
// New tagsChanged function with @observes decorator
@observes("model.tags")
tagsChanged() {
// See if it is a balloon tag
The open bracket at the end of this line: tagsChanged() {
has this error message:
‘;’ expected.ts(1005)
- The last bracket in the code also has an error flag with this message:
‘}’ expected.ts(1005)
docuss.js.es6(219, 54): The parser expected to find a ‘}’ to match the ‘{’ token here.
This is line 219:
tagsChanged: Ember.observer('model.tags', function() {
My server says this when i try to build:
251 | }, 0);
252 | }
> 253 | }.observes("model.tags"),
| ^
in /tmp/broccoli-6523ExbXtskE5c0h/out-1067-funnel
at Babel (Babel: discourse-plugins)
- name: Error
- nodeAnnotation: Babel: discourse-plugins
- nodeName: Babel
- originalErrorMessage: /var/www/discourse/app/assets/javascripts/discourse/discourse/plugins/docuss/discourse/initializers/docuss.js: Unexpected token (253:25)