Ad Widget

Collapse

Importing scripts while using item scripting

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ahmed024
    Junior Member
    • Apr 2022
    • 1

    #1

    Importing scripts while using item scripting

    Hi, im tusing javascript to get data from firebase. My script requires me to import Firebase javascripts. When i try to import in Items. I always get
    Code:
    Cannot compile script: SyntaxError: parse error
    Can someone please tell me how i can import scripts when using items type scripting. For example i would like to include my script this.
    Code:
    import { initializeApp } from "https://www.gstatic.com/firebasejs/9.6.10/firebase-app.js";
    import { getDatabase, ref, onValue} from "https://www.gstatic.com/firebasejs/9.6.10/firebase-database.js";
Working...