GithubHelp home page GithubHelp logo

Comments (14)

kuitos avatar kuitos commented on May 21, 2024 1

entry 有问题

image

from qiankun.

shengbeiniao avatar shengbeiniao commented on May 21, 2024 1

1.导航到子项目刷新页面经常出现这个错误:
TIM截图20190820113143
2.配置子项目时若package.json没有设置name属性会报错
3.import * as app from `'@tmp/umi'; 这段代码中的 @tmp/umi 一直不理解,能解答一下吗?谢谢!!
http://bin.ananlab.com/

@tmp指向umi生成的临时目录pages/.umi,webpack alias,你可以执行npx umi inspect > dev.log,查看

from qiankun.

kuitos avatar kuitos commented on May 21, 2024

给出复现步骤

from qiankun.

bingo618 avatar bingo618 commented on May 21, 2024

子应用app.js如下配置:
TIM截图20190819135220
主应用:
TIM截图20190819135300
http://bin.ananlab.com/

from qiankun.

bingo618 avatar bingo618 commented on May 21, 2024

1.导航到子项目刷新页面经常出现这个错误:
TIM截图20190820113143
2.配置子项目时若package.json没有设置name属性会报错
3.import * as app from `'@tmp/umi'; 这段代码中的 @tmp/umi 一直不理解,能解答一下吗?谢谢!!
http://bin.ananlab.com/

from qiankun.

kuitos avatar kuitos commented on May 21, 2024

能给一个可以复现的 repo 地址吗 @bingo618

from qiankun.

bingo618 avatar bingo618 commented on May 21, 2024

主项目:
https://github.com/bingo618/micro-base
子项目:
https://github.com/bingo618/micro-sub1

我是部署在oss对象存储上的,由于在访问时带路径的页面时如(http://bin.ananlab.com/app1)刷新页面会出现404。所以我配置了404页默认是index.html,来解决这个问题。不知道上面的报错是不是跟部署有关。

from qiankun.

kuitos avatar kuitos commented on May 21, 2024

@bingo618 代码跑不起来,资源找不到
image

参考这个把子应用的 publicPath 配上 https://github.com/umijs/qiankun/wiki/FAQ#why-dynamic-imported-assets-missing

from qiankun.

feibi avatar feibi commented on May 21, 2024

@kuitos .umirc.js开发环境开启dll后,会报http://localhost:XXX/umi.dll.js跨域问题, http://localhost:XXX/umi.js可以正常加载出来呢

from qiankun.

shengbeiniao avatar shengbeiniao commented on May 21, 2024

@kuitos .umirc.js开发环境开启dll后,会报http://localhost:XXX/umi.dll.js跨域问题, http://localhost:XXX/umi.js可以正常加载出来呢

先把子应用dll设为false,解决

from qiankun.

feibi avatar feibi commented on May 21, 2024

@shengbeiniao 设置成false是不跨域,但开发编译会很慢,所以才想问一下什么原因

from qiankun.

feibi avatar feibi commented on May 21, 2024

@kuitos 请问一下,主项目使用@umijs/plugin-qiankun/master,子项目必须要配置@umijs/plugin-qiankun/slave才行吗?我试了下,主项目直接用qiankun, 子项目用@umijs/plugin-qiankun/slave是可以正常渲染的。

from qiankun.

kuitos avatar kuitos commented on May 21, 2024

umi plugin 只是帮你做了一些封装,底层还是基于 qiankun,子项目只要符合qiankun的接入要求就行

from qiankun.

bingo618 avatar bingo618 commented on May 21, 2024

@kuitos 没有找到app2的资源是因为我的demo只用了一个子项目,主项目未把app2的配置项删除。问题已解决,谢谢

from qiankun.

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.