Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70443

Proper way to import a whole .js file

$
0
0

I need to use a .js script inside of one of my components. What is the proper way to use a whole .js file in StencilJS?

I tried using the Require() funtion but I get this error.

image

Then I tried to import is with import * as Foo from './foo.js but it didn’t work, the file was considered undefined.

I’m converting my app from Angular to Ionic, if that can help.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 70443

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>