简体   繁体   English

如何修复“模块构建失败(来自./node_modules/postcss-loader/src/index.js)”

[英]How to fix “Module build failed (from ./node_modules/postcss-loader/src/index.js)”

I'm getting this error when I try to run my app, I'm using all the same dependencies that I always use so I'm very baffled by this.当我尝试运行我的应用程序时出现此错误,我正在使用我一直使用的所有相同依赖项,所以我对此感到非常困惑。

Warn in警告

in./assets/css/style.css in./assets/css/style.css

Module Warning (from./node_modules/postcss-loader/src/index.js):模块警告(来自./node_modules/postcss-loader/src/index.js):
(13:3) start value has mixed support, consider using flex-start instead friendly-errors 18:06:28 @./assets/css/style.css @./.nuxt/App.js @./.nuxt/index.js @./.nuxt/client.js @ multi eventsource-polyfill webpack-hot-middleware/client?reload=true&timeout=30000&ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client./.nuxt/client.js (13:3) 开始值有混合支持,考虑使用 flex-start 代替友好错误 18:06:28 @./assets/css/style.css @./.nuxt/App.js @./.nuxt/ index.js @./.nuxt/client.js @multi eventsource-polyfill webpack-hot-middleware/client?reload=true&timeout=30000&ansiColors=&overlayStyles=&path=%2F__webpack_hmr%2Fclient&name=client./.nuxt/client.js

what should i do?我应该怎么办?

build: {
    postcss: {
      preset: {
        features: {
          // Fixes: https://github.com/tailwindcss/tailwindcss/issues/1190#issuecomment-546621554
          "focus-within-pseudo-class": false
        }
      },
    },
}

I also met this warn:我也遇到了这个警告:

start value has mixed support, consider using flex-start instead

Although the warning message can be ignored,but it makes me unwell.虽然警告信息可以忽略,但它让我不舒服。

finally, i find a reasonable answer here , the point is flex-direction vs writing-mode direction最后,我在这里找到了一个合理的答案,重点是flex-direction vs writing-mode direction

1. flex-start (default): items are packed toward the start of the flex-direction.
2. flex-end: items are packed toward the end of the flex-direction.
3. start: items are packed toward the start of the writing-mode direction.
4. end: items are packed toward the end of the writing-mode direction.

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 模块构建失败(来自 ./node_modules/babel-loader/lib/index.js)Vue Js - Module build failed (from ./node_modules/babel-loader/lib/index.js) Vue Js 错误:模块构建失败(来自 ./node_modules/babel-loader/lib/index.js):语法错误: - Error: Module build failed (from ./node_modules/babel-loader/lib/index.js): SyntaxError: 模块构建失败(来自./node_modules/vue-loader/dist/index.js):TypeError:无法读取 Object.loader 未定义的属性“样式” - Module build failed (from ./node_modules/vue-loader/dist/index.js): TypeError: Cannot read property 'styles' of undefined at Object.loader 模块构建失败(来自 ./node_modules/eslint-loader/index.js):错误:找不到模块“eslint/lib/formatters/stylish” - Module build failed (from ./node_modules/eslint-loader/index.js): Error: Cannot find module 'eslint/lib/formatters/stylish' Vue 模块构建失败(来自 ./node_modules/vue-loader/lib/loaders/templateLoader.js) - Vue module build failed (from ./node_modules/vue-loader/lib/loaders/templateLoader.js) vuejs/eslint-plugin-vue 模块构建失败(来自./node_modules/eslint-loader/dist/cjs.js):错误:找不到模块'eslint' - vuejs/eslint-plugin-vue Module build failed (from ./node_modules/eslint-loader/dist/cjs.js): Error: Cannot find module 'eslint' 运行 npm serve 时获取错误消息模块构建失败(来自 ./node_modules/sass-loader/dist/cjs.js) - Getting error message Module build failed (from ./node_modules/sass-loader/dist/cjs.js) when running npm serve ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/components/table.vue 中的错误 - ERROR in ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/components/table.vue solana - /node_modules/@toruslabs/eccrypto/index.js:在 function 之外“返回” - solana - /node_modules/@toruslabs/eccrypto/index.js: 'return' outside of function ./node_modules/node-pty/build/Release/pty.node 模块解析失败:意外字符 '' - ./node_modules/node-pty/build/Release/pty.node Module parse failed: Unexpected character ''
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM