Giter Site home page Giter Site logo

Comments (5)

ICELI avatar ICELI commented on August 19, 2024 1

I have the same issue. After i changed the dist path like this

new PrerenderSpaPlugin(
      Path.join(__dirname, '../dist'),
      [ '/' ]
    )

It's working!
Make sure your webpack.config.js file relative to the dist directory~

from prerender-spa-plugin.

dkimot avatar dkimot commented on August 19, 2024

I have the same issue. Do you get an error message that says "tmpDir() is deprecated, use tmpdir() instead."?

from prerender-spa-plugin.

 avatar commented on August 19, 2024

Hi,

Firstly, tmpDir() is deprecated, use tmpdir() is just a warning displayed by one of the dependency.

Secondly, in a more general way, If you have a 404, it's because the full path doesn't lead to your page. There can be two reasons :

  • the relative path may be wrong (small probability)
  • like @ICELI noticed, the base path may be wrong : be aware of the fact that the script doesn't stand at the root of your project

I will do a pull request that provide a test of the existence of the base path provided.

from prerender-spa-plugin.

drewlustro avatar drewlustro commented on August 19, 2024

@treforcoster - has this been resolved for you? If not, could you please provide detailed instructions on repro?

from prerender-spa-plugin.

drewlustro avatar drewlustro commented on August 19, 2024

HI @treforcoster - check the latest example for vue2 in the repo. It should guide you to the right configuration to avoid this error.

from prerender-spa-plugin.

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.