laravel-admin icon indicating copy to clipboard operation
laravel-admin copied to clipboard

Import does Not work on script

Open ogua opened this issue 2 years ago • 0 comments

- Laravel Version: 8.0

  • PHP Version: 8.0
  • Laravel-admin: 2.0.0 Beta

Description:

Am trying to use firebase js file in laravel admin, but i keep getting this error : SyntaxError: Cannot use import statement outside a module , what is the best way to use firebase js. this is my script

`

const firebaseConfig = { apiKey: "", authDomain: "", projectId: "", storageBucket: "", messagingSenderId: "", appId: "", measurementId: "" };

// Initialize Firebase const app = initializeApp(firebaseConfig); const analytics = getAnalytics(app); `

Steps To Reproduce:

ogua avatar May 21 '22 20:05 ogua