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
Hi! Not sure if this is just something I am not doing correctly. I have tried everything to set up my project like a modular application. Rather than adding everything into my app via a <script> tag in my Index.html file, I have a single .js file ( index.js ) that imports everything in as individual components. Below is a simplified version of the code:
I have tried everything I can possibly think of to call App in my index.html file, but no solutions work for actually rendering it to the DOM. If I add all of this in the playground or directly into index.html I can render it, but no luck with rendering App from index.js Can you provide any help?
The text was updated successfully, but these errors were encountered:
const App = { $cell: true, ... } is not in the global scope (since modules have their own scope). Use window.App = { $cell: true, ... }. Here is an example:
Hi! Not sure if this is just something I am not doing correctly. I have tried everything to set up my project like a modular application. Rather than adding everything into my app via a
<script>
tag in myIndex.html
file, I have a single.js
file( index.js )
that imports everything in as individual components. Below is a simplified version of the code:I have tried everything I can possibly think of to call
App
in myindex.html
file, but no solutions work for actually rendering it to the DOM. If I add all of this in the playground or directly intoindex.html
I can render it, but no luck with renderingApp
fromindex.js
Can you provide any help?The text was updated successfully, but these errors were encountered: