Git Product home page Git Product logo

Comments (8)

justwiner avatar justwiner commented on June 9, 2024 1

开启公共依赖模块的服务,我的公共依赖模块在portal项目下common-deps-static文件夹中,只需要在这个文件夹下开启服务即可,可以通过http-server插件,端口设置为8000,并且设置跨域`

这个要怎么操作呀

@liuyaoShuai
首先你要确定你有没有启动一个静态服务的工具,没有的话可以安装 http-server,npm i http-server -g
然后你需要在/portal/common-deps-static/路径下,执行命令hs -p 8000 --cors,即可

from microfront-end-single-spa.

tongyafang avatar tongyafang commented on June 9, 2024

解决了吗,我也遇到了这个问题

from microfront-end-single-spa.

justwiner avatar justwiner commented on June 9, 2024

我本地运行没这个问题呀,不知道你们是怎么运行的

from microfront-end-single-spa.

panpanYU avatar panpanYU commented on June 9, 2024

image
这个问题咋回事啊?

from microfront-end-single-spa.

justwiner avatar justwiner commented on June 9, 2024

这个问题是,启动模式的问题,现在project1、project2、menu项目分别新增了本地开发模式下的启动命令:npm run dev:local,通过这个命令,单独运行各个项目,就可以打开各个项目的页面了

from microfront-end-single-spa.

liuyaoShuai avatar liuyaoShuai commented on June 9, 2024

开启公共依赖模块的服务,我的公共依赖模块在portal项目下common-deps-static文件夹中,只需要在这个文件夹下开启服务即可,可以通过http-server插件,端口设置为8000,并且设置跨域`

这个要怎么操作呀

from microfront-end-single-spa.

liuyaoShuai avatar liuyaoShuai commented on June 9, 2024

非常感谢 ,好厉害啊

from microfront-end-single-spa.

justwiner avatar justwiner commented on June 9, 2024

非常感谢 ,好厉害啊

感谢支持!

from microfront-end-single-spa.

Related Issues (5)

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.