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
At https://flowbite.com/docs/components/tabs/#example there are three sections about JavaScript code. Where should we add JavaScript codes?
I added these codes in a file called admin.js to my project. But the line:
import { Tabs } from 'flowbite';
It encounters an error (Uncaught SyntaxError: Cannot use import statement outside a module).
I think I'm adding the js codes to the project in the wrong way or something else because it's not working for me.
just create admin.js file, Copy the javascript codes related to the tabs from the site in the same order as they are on the page related to the tabs (https://flowbite.com/docs/components/tabs/#example) to admin.js, call admin.js at the end of admin.html file.
Is there anything else I need to do? For example, should I introduce the admin.js file in tailwind.config.js? (Of course, I did this) or should I enter a special command in the terminal to activate the features related to JavaScript (interactive UI components)? Or add a file to the project? I don't know what I missed.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
At https://flowbite.com/docs/components/tabs/#example there are three sections about JavaScript code. Where should we add JavaScript codes?
I added these codes in a file called admin.js to my project. But the line:
import { Tabs } from 'flowbite';
It encounters an error (Uncaught SyntaxError: Cannot use import statement outside a module).
I think I'm adding the js codes to the project in the wrong way or something else because it's not working for me.
just create admin.js file, Copy the javascript codes related to the tabs from the site in the same order as they are on the page related to the tabs (https://flowbite.com/docs/components/tabs/#example) to admin.js, call admin.js at the end of admin.html file.
Is there anything else I need to do? For example, should I introduce the admin.js file in tailwind.config.js? (Of course, I did this) or should I enter a special command in the terminal to activate the features related to JavaScript (interactive UI components)? Or add a file to the project? I don't know what I missed.
Beta Was this translation helpful? Give feedback.
All reactions