我想使用Laravel混合和安装的节点模块,但当我导入Laravel混合-
const mix = require('laravel-mix');
上面写着-
could not find declaration file for modules 'footer'
有什么建议吗?
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for the application as well as bundling up all the JS files.
|
*/
mix.copyDirectory('resources/backend', 'public/backend');
mix.js('resources/js/app.js', 'public/backend/js');
1条答案
按热度按时间yqhsw0fo1#
尝试删除
node_modules
文件夹并使用依赖项管理器重新安装依赖项如果仍然不工作,发送
package.json
内容