Coder Social home page Coder Social logo

Comments (7)

kuitos avatar kuitos commented on May 21, 2024 1

你用了 dynamic import,目前需要配置完整的 publicPath 地址,如:

{
  publicPath: 'http://localhost:7001/'
}

后续 qiankun 会做相应支持

from qiankun.

kuitos avatar kuitos commented on May 21, 2024

使用了 dynamic import 么?

from qiankun.

wbbw007 avatar wbbw007 commented on May 21, 2024

使用了 dynamic import 么?

@kuitos 没有使用 dynamic import

from qiankun.

kuitos avatar kuitos commented on May 21, 2024

来个可重现的 demo 吧 https://codesandbox.io/

from qiankun.

wbbw007 avatar wbbw007 commented on May 21, 2024

https://codesandbox.io/s/ewzm0
我发现应该是我在使用react-router 3.2.0版本时 进行路由跳转时,导致报错,但是我不知道是什么原因导致 @kuitos

from qiankun.

wbbw007 avatar wbbw007 commented on May 21, 2024

thx,这解决了报错问题

from qiankun.

yangangzhang avatar yangangzhang commented on May 21, 2024
publicPath: 'http://localhost:7001/'

您好,这个问题解决了吗?还是需要配置publicPath: 'http://localhost:7001/',子项目图片,路由懒加载的js路径正确

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.