You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./node_modules/taro-ui/dist/style/index.scss
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Undefined operation: "calc($col / 12) times 100%".
on line 120 of node_modules/taro-ui/dist/style/components/flex.scss
from line 6 of node_modules/taro-ui/dist/style/components/index.scss
from line 12 of C:\project\乐至\lezhi-small-power\node_modules\taro-ui\dist\style\index.scss
$width: calc($col / 12) * 100%;
------------^
监听文件修改中...
./node_modules/taro-ui/dist/style/index.scss
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Undefined operation: "calc($col / 12) times 100%".
on line 120 of node_modules/taro-ui/dist/style/components/flex.scss
from line 6 of node_modules/taro-ui/dist/style/components/index.scss
from line 12 of C:\project\乐至\lezhi-small-power\node_modules\taro-ui\dist\style\index.scss
$width: calc($col / 12) * 100%;
------------^
at C:\project\乐至\lezhi-small-power\node_modules\webpack\lib\NormalModule.js:316:20
at C:\project\乐至\lezhi-small-power\node_modules\loader-runner\lib\LoaderRunner.js:367:11
at C:\project\乐至\lezhi-small-power\node_modules\loader-runner\lib\LoaderRunner.js:233:18
at context.callback (C:\project\乐至\lezhi-small-power\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
at Object.callback (C:\project\乐至\lezhi-small-power\node_modules\sass-loader\dist\index.js:73:7)
at Object.done [as callback] (C:\project\乐至\lezhi-small-power\node_modules\neo-async\async.js:8069:18)
at options.error (C:\project\乐至\lezhi-small-power\node_modules\node-sass\lib\index.js:294:32)
(node:25108) UnhandledPromiseRejectionWarning: [object Array]
(Use node --trace-warnings ... to show where the warning was created)
(node:25108) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:25108) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
相关平台
微信小程序
小程序基础库: 2.16.0
使用框架: React
复现步骤
🙅 编译失败. 2024/5/17 17:25:38
./node_modules/taro-ui/dist/style/index.scss
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Undefined operation: "calc($col / 12) times 100%".
on line 120 of node_modules/taro-ui/dist/style/components/flex.scss
from line 6 of node_modules/taro-ui/dist/style/components/index.scss
from line 12 of C:\project\乐至\lezhi-small-power\node_modules\taro-ui\dist\style\index.scss
------------^
监听文件修改中...
./node_modules/taro-ui/dist/style/index.scss
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Undefined operation: "calc($col / 12) times 100%".
on line 120 of node_modules/taro-ui/dist/style/components/flex.scss
from line 6 of node_modules/taro-ui/dist/style/components/index.scss
from line 12 of C:\project\乐至\lezhi-small-power\node_modules\taro-ui\dist\style\index.scss
------------^
@ ./src/app.js (./node_modules/babel-loader/lib!./src/app.js) 13:0-39
@ ./src/app.js
(node:25108) UnhandledPromiseRejectionWarning: [object Array]
(Use
node --trace-warnings ...
to show where the warning was created)(node:25108) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)(node:25108) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
期望结果
能正常编译
实际结果
编译失败无法运行
环境信息
The text was updated successfully, but these errors were encountered: