I downloaded a template and put all the CSS in a folder and imported it into the App.js file, and now I want to import the JavaScript files, but it gives an error, I even used / * global jQuery * / and put it in the index.js file. but it still gives an error
Is it possible to import JS file at all? If so, thank you for your reply
Error image: Error Text
UPDATE
in App.js
import './App.css'; import './dist/css/adminlte.min.css'; import './dist/css/bootstrap-rtl.min.css'; import './dist/css/custom-style.css'; import './plugins/font-awesome/css/font-awesome.min.css'; import 'jquery'; import jQuery from 'jquery'; import $ from 'jquery'; import './dist/js/adminlte.js';
can you show us the import syntax you are using to import specific.JS file in to your project?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.