在我手动解决了一些冲突的 git 合并后运行 npm run watch/npm run dev 时出现以下错误:
/Users/Julia/sites/kickback/webpack.mix.js:19 <<<<<<< HEAD ^^
SyntaxError: Unexpected token << at new Script (vm.js:83:7) at NativeCompileCache._moduleCompile (/Users/Julia/sites/kickback/node_modules/v8-compile-cache/v8-compile-cache.js:240: 18) 在 Module._compile (/Users/Julia/sites/kickback/node_modules/v8-compile-cache/v8-compile-cache.js:186:36) 在 Object.Module._extensions..js (internal/modules/ cjs/loader.js:787:10) 在 Module.load (internal/modules/cjs/loader.js:653:32) 在 tryModuleLoad (internal/modules/cjs/loader.js:593:12) 在 Function.Module ._load (internal/modules/cjs/loader.js:585:3) at Module.require (internal/modules/cjs/loader.js:690:17) at require (/Users/Julia/sites/kickback/node_modules/ v8-compile-cache/v8-compile-cache.js:161:20) 在对象。(/Users/Julia/sites/kickback/node_modules/laravel-mix/setup/webpack.config.js:12: 6) 在 /Users/Julia/sites/kickback/node_modules/webpack-cli/bin/utils/convert-argv.js:125:17 at Array.forEach () at module.exports (/Users/Julia/sites/kickback /node_modules/webpack-cli/bin/utils/convert-argv.js:123:15) 在 yargs.parse (/Users/Julia/sites/kickback/node_modules/webpack-cli/bin/cli.js:71:45 ) 在 Object.parse (/Users/Julia/sites/kickback/node_modules/webpack-cli/node_modules/yargs/yargs.js:567:18) 在 /Users/Julia/sites/kickback/node_modules/webpack-cli/bin /cli.js:49:8 在对象。(/Users/Julia/sites/kickback/node_modules/webpack-cli/bin/cli.js:365:3) 在 Object.Module 的 Module._compile (internal/modules/cjs/loader.js:776:30)。 _extensions..js (internal/modules/cjs/loader.js:787:10) 在 Module.load (internal/modules/cjs/loader.js:653: 32) 在tryModuleLoad (internal/modules/cjs/loader.js:593:12) 在Function.Module._load (internal/modules/cjs/loader.js:585:3) 在Module.require (internal/modules/cjs /loader.js:690:17) 在 Object 的 require (internal/modules/cjs/helpers.js:25:18)。(/Users/Julia/sites/kickback/node_modules/webpack/bin/webpack.js:156:2) 在 Object.Module._extensions 的 Module._compile (internal/modules/cjs/loader.js:776:30)。 .js
现在解决所有冲突后,我收到以下错误:
./resources/assets/sass/main.scss (./node_modules/css-loader??ref--5-2!./node_modules/postcss-loader/src??postcss0!./node_modules/sass-loader/lib/loader.js??ref--5-4!./resources/assets/sass/main.scss)
Module build failed (from ./node_modules/postcss-loader/src/index.js):
/Users/Julia/sites/kickback/tailwind.config.js:511
=======
^^^
SyntaxError: Unexpected token ===
at new Script (vm.js:83:7)
at NativeCompileCache._moduleCompile (/Users/Julia/sites/kickback/node_modules/v8-compile-cache/v8-compile-cache.js:240:18)
at Module._compile (/Users/Julia/sites/kickback/node_modules/v8-compile-cache/v8-compile-cache.js:186:36)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Module.require (internal/modules/cjs/loader.js:690:17)
at require (/Users/Julia/sites/kickback/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
at /Users/Julia/sites/kickback/node_modules/tailwindcss/lib/index.js:54:83
at /Users/Julia/sites/kickback/node_modules/tailwindcss/lib/processTailwindFeatures.js:32:20
at LazyResult.run (/Users/Julia/sites/kickback/node_modules/postcss-loader/node_modules/postcss/lib/lazy-result.js:295:14)
at LazyResult.asyncTick (/Users/Julia/sites/kickback/node_modules/postcss-loader/node_modules/postcss/lib/lazy-result.js:208:26)
at LazyResult.asyncTick (/Users/Julia/sites/kickback/node_modules/postcss-loader/node_modules/postcss/lib/lazy-result.js:221:14)
at /Users/Julia/sites/kickback/node_modules/postcss-loader/node_modules/postcss/lib/lazy-result.js:250:14
at new Promise (<anonymous>)
at LazyResult.async (/Users/Julia/sites/kickback/node_modules/postcss-loader/node_modules/postcss/lib/lazy-result.js:246:23)
at LazyResult.then (/Users/Julia/sites/kickback/node_modules/postcss-loader/node_modules/postcss/lib/lazy-result.js:127:17)
at Promise.resolve.then.then (/Users/Julia/sites/kickback/node_modules/postcss-loader/src/index.js:142:8)
@ ./resources/assets/sass/main.scss 2:14-208