why does this not work in sapphire
index.js
basically I want to access
./utils
using this.container.util
14 Replies
When asking for help, make sure to provide as much detail as possible. What have you tried so far? Do you have stacktraces that you can show us? What are you trying to achieve? Try to answer these questions and others, so we do not have to ask for them afterwards.
❯ For a good guide on how to ask questions, see the instructions that StackOverflow gives. You should try to always follow these guidelines. ❯ For an excellent video that shows how not to ask technical questions is this, watch this YouTube video by LiveOverflow. ❯ Asking technical questions (Clarkson) ❯ How to ask questions the smart way (Raymond)
Specifically, what problem are you running into? @-Carlosđź‘‘
it returns undefined
what, where, when
evaled it using my eval cmd
Can you show your full index.js?
.
Can you show utils.js please? 🙂
it's pretty long but here's a small part of it
.
It looks like you're not exporting anything called
util
Did you mean to use a default import?Solution
That would be:
(removal of curly brackets)
didn't notice that, thanks
Np 🙂