小编Sat*_*v93的帖子

无法从 garygrossgarten/github-action-ssh@release 的非 TTY 设备执行交互式登录错误

我正在尝试在由 github 操作创建的 ssh 连接中运行 docker 命令。我什至在工作流程中使用了提及。这是我的工作流程

\n
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node\n# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions\n\nname: Node.js CI\n\non:\n  pull_request:\n    branches: ['main']\n\nenv:\n  REGISTRY: 'ghcr.io/testing/api-gateway'\n  IMAGE_NAME: ${{ format('{0}-{1}', github.event.repository.name, github.sha) }}\n  USERNAME: ${{ secrets.USERNAME }}\n  DOCKER_TOKEN: ${{ secrets.DOCKER_TOKEN }}\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n\n    strategy:\n      matrix:\n        node-version: [16.x]\n\n    steps:\n      - uses: actions/checkout@v3\n\n      - name: Use Node.js ${{ matrix.node-version }}\n        uses: actions/setup-node@v3\n        with:\n …
Run Code Online (Sandbox Code Playgroud)

ssh command docker github-actions

11
推荐指数
1
解决办法
2万
查看次数

Strapi安装过程依赖安装报错

最近我尝试使用“npx”将 Strapi 安装到我的 Windows 计算机上。但是当依赖项更新如下时我收到一个错误。我尝试卸载并安装 knex 但它没有用。我该如何解决这个问题?

strapi-app>npx create-strapi-app . --quickstart
Creating a new Strapi application at D:\E-LEARNING\React Js\projects\strapi-app.

Creating a quickstart project.
Creating files.
Error while installing dependencies:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: strapi-app@0.1.0
npm ERR! Found: knex@0.19.5
npm ERR! node_modules/knex
npm ERR!   knex@"<0.20.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer knex@"^0.20.0" from strapi-connector-bookshelf@3.4.1
npm ERR! node_modules/strapi-connector-bookshelf
npm …
Run Code Online (Sandbox Code Playgroud)

headless content-management-system reactjs strapi npx

5
推荐指数
1
解决办法
829
查看次数

出了什么问题:任务 ':fluttertoast:compileDebugKotlin' 执行失败

更新我的 flutter 项目后,当我要在 android studio 中运行应用程序时,出现以下错误。

\n
e: C:\\Users\\user\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dartlang.org\\fluttertoast-7.1.5\\android\\src\\main\\kotlin\\io\\github\\ponnamkarthik\\toast\\fluttertoast\\MethodCallHandlerImpl.kt: (16, 16): Redeclaration: MethodCallHandlerImpl\ne: C:\\Users\\user\\AppData\\Local\\Pub\\Cache\\hosted\\pub.dartlang.org\\fluttertoast-7.1.6\\android\\src\\main\\kotlin\\io\\github\\ponnamkarthik\\toast\\fluttertoast\\MethodCallHandlerImpl.kt: (17, 16): Redeclaration: MethodCallHandlerImpl\n\nFAILURE: Build failed with an exception.\n\n* What went wrong:\nExecution failed for task \':fluttertoast:compileDebugKotlin\'.\n> Compilation error. See log for more details\n\n* Try:\nRun with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.\n\n* Get more help at https://help.gradle.org\n\nBUILD FAILED in 52s\nException: Gradle task assembleDebug failed with exit code 1\n …
Run Code Online (Sandbox Code Playgroud)

android gradle build.gradle flutter flutter-dependencies

2
推荐指数
1
解决办法
8116
查看次数

如何在 Nuxt 3 项目中使用 vue3 组件(vue.draggable.next)作为插件

在我最近开始的项目中,我想使用vue.draggable.next。所以我在 nuxt 插件目录中创建了一个“.js”文件,并添加了如下代码。

import VueDraggableNext from "vue-draggable-next";

export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.use(VueDraggableNext);
});
Run Code Online (Sandbox Code Playgroud)

然后我在我的一个组件中使用了它,如下所示,

<template>
  <div class="h-full w-full border-2 border-dashed rounded-lg p-5 flex">
    <div class="flex w-1/6 h-full">
      <ComponentPalette />
    </div>
    <VueDraggableNext
      v-model="form.children"
      group="people"
      @start="isDragOver = true"
      @end="isDragOver = false"
      item-key="id"
      class="flex flex-col w-5/6 h-full border-blue-700 border-2 border-dashed rounded-lg p-5 space-y-5"
    >
    <template #item="{element}">
    <FormBuilder
        :component="element"
        @update="update"
      />
   </template>
      
    </VueDraggableNext>
  </div>
</template>

<script setup>
import FormBuilder from "~~/components/dynamic-components/FormBuilder.vue";
import ComponentPalette from "~~/components/form-builder/ComponentPalette.vue";
import { v4 as uuidv4 } …
Run Code Online (Sandbox Code Playgroud)

javascript plugins draggable vuejs3 nuxtjs3

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

请求的模块 '/_nuxt/models/component/blog/BlogPage.interface.ts' 未提供名为 'default' 的导出 - Nuxt 3 TypeScript 错误

我在 nuxt 3 项目中使用 Typescript,当我从组件导入 Typescript 模型时收到此错误。

The requested module '/_nuxt/models/component/blog/BlogPage.interface.ts' does not provide an export named 'default'
Run Code Online (Sandbox Code Playgroud)

这是我的组件。组件渲染器.vue

<script setup lang="ts">
import BlogPage from "~~/models/component/blog/BlogPage.interface";
import HomePage from "~~/models/component/home/HomePage.interface";
import ProductPage from "~~/models/component/product/ProductPage.interface";

const props = defineProps<{
  page: HomePage | ProductPage | BlogPage;
}>();
console.log(typeof props.page);
</script>
Run Code Online (Sandbox Code Playgroud)

这是进口型号。BlogPage.interface.ts

interface BlogPage {
  data: any;
}

export default BlogPage;
Run Code Online (Sandbox Code Playgroud)

最后这是我的nuxt.config.ts

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  alias: {
    'models': './models/*',
  },
  typescript: {
    strict: true,
  },
  css: ["~/assets/css/main.css"],
  modules: …
Run Code Online (Sandbox Code Playgroud)

import types model typescript nuxtjs3

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