Giter Site home page Giter Site logo

module 名称相同 about ngx-planet HOT 7 CLOSED

worktile avatar worktile commented on May 26, 2024
module 名称相同

from ngx-planet.

Comments (7)

why520crazy avatar why520crazy commented on May 26, 2024

因为每个子应用的路由前缀都不一样,请求的资源文件即是文件名一致也不会有问题的,可否具体描述一下

from ngx-planet.

lizhongkun avatar lizhongkun commented on May 26, 2024

app1和app2项目下有两个相同结构的userModule,我采用loadChildren的方式去加载这两个userModule,如果app1下的userModule先加载,再去点击路由加载app2下的userModule是就会报错
image

from ngx-planet.

why520crazy avatar why520crazy commented on May 26, 2024

那你确定懒加载的js路径是不是一样的?app1和app2需要配置不同的deployUrl

from ngx-planet.

why520crazy avatar why520crazy commented on May 26, 2024

我有时间本地试试看

from ngx-planet.

ywager avatar ywager commented on May 26, 2024

HI @why520crazy 同样遇到了这个问题 主应用和子应用有相同名称的module也会报上面的错

from ngx-planet.

why520crazy avatar why520crazy commented on May 26, 2024

https://github.com/worktile/ngx-planet#faq

from ngx-planet.

why520crazy avatar why520crazy commented on May 26, 2024

https://github.com/worktile/ngx-planet/blob/master/README.zh-CN.md#%E6%8A%A5%E9%94%99-cannot-read-property-call-of-undefined-at-__webpack_require__-bootstrap79

通过这里提供的方案试试。

from ngx-planet.

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.