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
I have a couple of files that set up the theme and style variables for my App. I have them each in their own file and I import one another using the import syntax. I keep getting this compilation error when using customizeTheme and starting the App:
eg: let´s assume it says import fontSize from "./fontSize"
SyntaxError: Cannot use import statement outside a module
The text was updated successfully, but these errors were encountered:
HernanFaifman
changed the title
customizeTheme with files that use JS
customizeTheme with files that use JS throws error SyntaxError: Cannot use import statement outside a module
Dec 7, 2020
I have a couple of files that set up the theme and style variables for my App. I have them each in their own file and I import one another using the import syntax. I keep getting this compilation error when using customizeTheme and starting the App:
The config is as follows:
The text was updated successfully, but these errors were encountered: