You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The scripts.js file is not automatically importing jQuery. I believe there is a part in your code in site.setup.js that attempts to this. The error I get is:
Uncaught ReferenceError: $ is not defined
When I manually import * as $ from 'jquery' at the top of my scripts.js file jQuery works.
Also, I have to manually @import '~sanitize.css' in my styles.scss file for it to be applied. Your site.setup.js file should also take care of this so I think these functions aren't being run?
Additionally, when I manually import these it appears the SCSS file is loaded in after the JS as for a brief moment when refreshing the page no styling is applied. When it does apply, CSS transitions that shouldn't occur on page load also occur.
To Reproduce
Steps to reproduce the behavior:
Get a new static site boilerplate
During the setup select sanitize.css and choose to install jQuery
Get error in browser console when I run
Try manual setup again
Get same error
Expected behavior
Expect CSS to display before JS waits for document to be ready.
Expect jQuery and sanitize.css to automatically be imported into their respective scripts.js and styles.css file at build time.
Desktop (please complete the following information):
OS: Windows 10
Browser: Chrome and Firefox
Version: Chrome Version 71.0.3578.98 (Official Build) (64-bit). Firefox 64.0.2 (64-bit)
The text was updated successfully, but these errors were encountered:
Describe the bug
The scripts.js file is not automatically importing jQuery. I believe there is a part in your code in site.setup.js that attempts to this. The error I get is:
Uncaught ReferenceError: $ is not defined
When I manually
import * as $ from 'jquery'
at the top of my scripts.js file jQuery works.Also, I have to manually @import '~sanitize.css' in my styles.scss file for it to be applied. Your site.setup.js file should also take care of this so I think these functions aren't being run?
Additionally, when I manually import these it appears the SCSS file is loaded in after the JS as for a brief moment when refreshing the page no styling is applied. When it does apply, CSS transitions that shouldn't occur on page load also occur.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expect CSS to display before JS waits for document to be ready.
Expect jQuery and sanitize.css to automatically be imported into their respective scripts.js and styles.css file at build time.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: