Git Product home page Git Product logo

Comments (4)

Symous avatar Symous commented on May 26, 2024 7

这坑也太多了,经过头铁找资料尝试,可以找到node_modules/restc/faas/index.html,然后注释掉

<script src="https://github.elemecdn.com/highlightjs/cdn-release/9.8.0/build/highlight.min.js"></script>

在下面粘贴上

<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.8.0/highlight.min.js"></script>
 <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.8.0/languages/go.min.js"></script>

重新启动即可,亲测好用。

from easy-mock.

SilvaQ avatar SilvaQ commented on May 26, 2024 3

出现这个问题主要原因是 restc 包更新了,现在restc使用的所有路径前面都有shadow这个字样,具体的请看文件:
restc首页文件源码

那么临时解决方案: 你进入你的容器 吧node_modules下的restc的faas下的index.html中的所有路径按照restc最新路径替换,然后偶重新编译
指南:

  • sudo docker exec -it -u root 容器名 /bin/bash
  • apt-get update
  • apt-get install vim -y
  • vim node_modules下的faas/index.html 替换路径为正确的url
  • npm build
  • 推出容器后重启容器

如果想从根解决 你得更新restc的版本后重新编译easymock生成你的容器。

祝好!

from easy-mock.

ideacco avatar ideacco commented on May 26, 2024

出现这个问题主要原因是 restc 包更新了,现在restc使用的所有路径前面都有shadow这个字样,具体的请看文件:
restc首页文件源码

那么临时解决方案: 你进入你的容器 吧node_modules下的restc的faas下的index.html中的所有路径按照restc最新路径替换,然后偶重新编译
指南:

  • sudo docker exec -it -u root 容器名 /bin/bash
  • apt-get update
  • apt-get install vim -y
  • vim node_modules下的faas/index.html 替换路径为正确的url
  • npm build
  • 推出容器后重启容器

如果想从根解决 你得更新restc的版本后重新编译easymock生成你的容器。

祝好!

非常感谢,解决了我的问题!

from easy-mock.

bmphjhu906 avatar bmphjhu906 commented on May 26, 2024

不用辣么麻烦,更新一下package.json中的restc包:"restc": "^0.3.0",然后删除node_modules,重新 npm install

from easy-mock.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.