balderdashy / balderdashy/sails
Cannot write mounted functions with parasails using default web app template. (Possibly Bootstrap Mapping Issue)
- Dominant language
- JavaScript
- Stars
- 22.8k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
**Sails version**: 1.1.0
**Node version**: 10.10.0
**NPM version**: 6.5.0
**DB adapter name**: N/A
**DB adapter version**: N/A
**Operating system**: Windows 10
Currently following Mike McNeil's Sails tutorial. Using a vanilla, unedited version of the Web App template `Sails New ProjectName` command, followed by option 1.
While demonstrating Parasails and as an example, Mike had us add a simple
`Console.log('Hello World');`
command under the `assets>js>Homepage.page.js` file, like this:
```javascript
mounted: async function() {
this._setHeroHeight();
console.log('Hello World!');
},
```
Refreshing and Re-lifting the app return the following in my console:

I'm opening this up as per request from Mike, however I'm not sure if this is a dependency issue instead.
Contributor guide
Research direction
Reproduce the issue from an unedited Sails web app template, then inspect assets/js/Homepage.page.js and the browser console after adding the mounted function shown in the report. Compare the template's asset and Parasails mappings to determine why the function cannot be written or loaded; done means the reported example works or the specific template/dependency cause is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100