小编Dri*_*nge的帖子

在 svelte-kit 样式标签中使用 tailwind 响应类时出现“需要分号或块”错误

在 svelte kit 组件样式标签中使用 tailwind 响应类(例如:md:my-autofocus:ring-0focus: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)

svelte tailwind-css sveltekit

6
推荐指数
1
解决办法
5205
查看次数

在 PHP 7.4 FPM Aplpine (Docker) 上安装 GMP 扩展

我在我的 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上尝试了解决方案,但是它对我不起作用。

关于如何解决这个问题的任何想法?

docker dockerfile docker-compose

4
推荐指数
2
解决办法
2014
查看次数