Open
Description
Issue type
- 🐛 Bug report
Description
Axios v1.0.0 and up causes the React app to not work. It appears to be an import/export issue. If I have the axios import in the file, this error appears: Uncaught SyntaxError: import declarations may only appear at top level of a module
. However, if i remove the axios import, then the error does not appear.
Desired behavior:
Be able to import Axios v1.0.0 and up
Current behavior:
Importing Axios v1.0.0 and up causes the React app to not load
Repro instructions (if applicable):
- Create a Liferay Platform project following the instructions here
- I used
npx @liferay/cli new new-project-name
- I used
yarn add axios
- add
import axios from "axios"
inAppComponent.js
yarn deploy
- see
Uncaught SyntaxError: import declarations may only appear at top level of a module
in the console
Other information (environment, versions etc):