在 svelte kit 组件样式标签中使用 tailwind 响应类(例如:md:my-auto、focus:ring-0、focus:outline-none)时,出现以下错误:
500
Semicolon or block is expected
ParseError: Semicolon or block is expected
at error (/var/www/html/node_modules/svelte/compiler.js:16752:20)
at Parser$1.error (/var/www/html/node_modules/svelte/compiler.js:16828:10)
at Object.read_style [as read] (/var/www/html/node_modules/svelte/compiler.js:13141:21)
at tag (/var/www/html/node_modules/svelte/compiler.js:15887:34)
at new Parser$1 (/var/www/html/node_modules/svelte/compiler.js:16787:22)
at parse$3 (/var/www/html/node_modules/svelte/compiler.js:16919:21)
at compile (/var/www/html/node_modules/svelte/compiler.js:30012:18)
at compileSvelte (/var/www/html/node_modules/@sveltejs/vite-plugin-svelte/dist/index.js:244:48)
at async TransformContext.transform (/var/www/html/node_modules/@sveltejs/vite-plugin-svelte/dist/index.js:837:27)
at async Object.transform (/var/www/html/node_modules/vite/dist/node/chunks/dep-6b5f3ba8.js:44285:30)
Run Code Online (Sandbox Code Playgroud)
这是我的组件的代码:
500
Semicolon or block is expected
ParseError: Semicolon or block is expected
at error (/var/www/html/node_modules/svelte/compiler.js:16752:20)
at Parser$1.error (/var/www/html/node_modules/svelte/compiler.js:16828:10)
at Object.read_style …Run Code Online (Sandbox Code Playgroud) 我在我的 docker 镜像上安装 gmp 扩展时遇到了问题。我的 docker 文件如下所示:
FROM php:7.4-fpm-alpine
RUN docker-php-ext-install pdo pdo_mysql gmp
Run Code Online (Sandbox Code Playgroud)
当我运行此 docker 文件时,出现错误:
configure: error: GNU MP Library version 4.2 or greater required.
ERROR: Service 'php' failed to build : The command '/bin/sh -c docker-php-ext-install pdo pdo_mysql gmp' returned a non-zero code: 1
Run Code Online (Sandbox Code Playgroud)
我已经在这个 stackoverflow post上尝试了解决方案,但是它对我不起作用。
关于如何解决这个问题的任何想法?