requireOnce() not loading at all when weird vars found
D
Dylan Hunt
started a topic
about 5 years ago
If you have a weird var (no error, but... unusual) like this (below; in my case, a typo),
an error isn't detected, yet requireOnce("SOME_MODULE") completely skips over and doesn't even attempt to load anything within the module.
It should either
A) Error in the editor when we try to save
or
B) requireOnce() should load anyway so we know where the error is (instead of skipping the entire module). In my case, it was camouflaged and I had to delete one func at a time and debug until I found it.
(PS -- on FireFox desktop, pasting an image directly into this support ticket creates *two* images)
1 Comment
Customer Support
said
almost 5 years ago
Hi Dylan,
Are you still seeing this behaviour ? Apologies for missing your initial post.
Dylan Hunt
If you have a weird var (no error, but... unusual) like this (below; in my case, a typo),
an error isn't detected, yet requireOnce("SOME_MODULE") completely skips over and doesn't even attempt to load anything within the module.
It should either
A) Error in the editor when we try to save
or
B) requireOnce() should load anyway so we know where the error is (instead of skipping the entire module). In my case, it was camouflaged and I had to delete one func at a time and debug until I found it.
(PS -- on FireFox desktop, pasting an image directly into this support ticket creates *two* images)