我正在建立一个新的wordpress主题,并且试图将一些js文件导入到我的脚本文件中。 我收到此错误:net :: ERR_ABORTED 404(未找到) 这是我的scripts.js文件:
```
//import "../css/style.css"
// Our modules / classes
import MobileMenu from "./modules/MobileMenu"
import HeroSlider from "./modules/HeroSlider"
import GoogleMap from "./modules/GoogleMap"
import Search from "./modules/Search"
// Instantiate a new object using our modules / classes
const mobileMenu = new MobileMenu()
const heroSlider = new HeroSlider()
const googleMap = new GoogleMap()
const search = new Search()
// Allow new JS and CSS to load in browser without a traditional page refresh
if (module.hot) {
module.hot.accept()
}
```