4: Add the following to the App tag in MainView.ux
Model="App()"
5: Save, and observe the following error message
[Viewport]: Error: : Error message: Uncaught require(): module not found: App
File name: (model-script)
Line number: 4
Source line: var modelClass = require('App');
in Fuse.Scripting.DiagnosticSubject<(model-script):4>
Rebuilding fixes the error, and also adding things in a different order (haven't found exactly which is correct yet) also makes it run fine.
Besides this causing an error, there are several things that could confuse users.
We did not write var modelClass = require("App") ourselves,
We are also using ES6, meaning we wouldn't have used require directly in our own code anyway.
This is not something the user knows anything about: Fuse.Scripting.DiagnosticSubject<(model-script):4(model-script) is not a file...
Tested on windows
App.zip
Steps to reproduce: 0: Add "**.js:FuseJS" to include in unoproj 1: Add the following to MainView.ux
2: Add new file "App.js" 3: Add the following to App.js
4: Add the following to the
App
tag in MainView.ux5: Save, and observe the following error message
Rebuilding fixes the error, and also adding things in a different order (haven't found exactly which is correct yet) also makes it run fine.
Besides this causing an error, there are several things that could confuse users. We did not write
var modelClass = require("App")
ourselves, We are also using ES6, meaning we wouldn't have used require directly in our own code anyway. This is not something the user knows anything about:Fuse.Scripting.DiagnosticSubject<(model-script):4
(model-script)
is not a file...