Coder Social home page Coder Social logo

Comments (6)

dhawaldarji7 avatar dhawaldarji7 commented on August 16, 2024 1

Got it. Thank you so much! Appreciate the help!

from dts-loader.

ruanyl avatar ruanyl commented on August 16, 2024

It looks like the tarball is broken, can you actually manually unzip the file?

from dts-loader.

dhawaldarji7 avatar dhawaldarji7 commented on August 16, 2024

Thanks for the reply. This is what I see in the browser when I try to launch the download link for the tarball.

But I can manually unzip the file.

Screen Shot 2022-10-19 at 8 59 34 AM

from dts-loader.

ruanyl avatar ruanyl commented on August 16, 2024

That's an HTTP 404, was the correct URL http://localhost:7002/app2-dts.tgz?
Can you try the following:

new WebpackRemoteTypePlugin({
  remotes: {
    app2: "app2@http://localhost:7002/"
  }
})

All WebpackRemoteTypePlugin need is an URL pointing to an entry to download the tarball, I should update the README to make it more clear(apparently it's misleading atm)

from dts-loader.

dhawaldarji7 avatar dhawaldarji7 commented on August 16, 2024

The above solution works, thank you so much!! 😊
Is there a way we can serve the file from a different url, for example: http://localhost:7002/remote/app2-dts.tgz or is that currently not possible?

from dts-loader.

ruanyl avatar ruanyl commented on August 16, 2024

Depends on where you copy app2-dts.tgz to, I cannot see your entire webpack config, but I suppose you have a script to make the tarball and copy it to the public path(dev server root/static folder), if you want to serve the file from /remote, then you can just copy the tarball to /remote folder

from dts-loader.

Related Issues (13)

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.