Giter Site home page Giter Site logo

Comments (15)

csvwolf avatar csvwolf commented on August 19, 2024 2

The same problem!

from prerender-spa-plugin.

drewlustro avatar drewlustro commented on August 19, 2024 2

from prerender-spa-plugin.

evansalter avatar evansalter commented on August 19, 2024 1

I'm having the exact same issue. Here's a Gist containing my webpack.conf.js, index.html, and main.js. When I build, dist/index.html has the exact same content as the original index.html, except the JS bundles are injected into <head>. I generated my app from the Vue CLI webpack template.

I am completely out of ideas, so any help I can get is greatly appreciated!

from prerender-spa-plugin.

kushagharahi avatar kushagharahi commented on August 19, 2024 1

@drewlustro YOU ARE BEAUTIFUL AND AMAZING. Thank you for the help. This can be closed.

from prerender-spa-plugin.

evansalter avatar evansalter commented on August 19, 2024

@csvwolf @kushagharahi I ended up writing my own webpack plugin that uses Nightmare.js to render the pages. It's pretty basic, but it might be worth a shot: https://github.com/esalter-va/webpack-static-site-generator

from prerender-spa-plugin.

shuiRong avatar shuiRong commented on August 19, 2024

same problem +1

from prerender-spa-plugin.

dsandrade avatar dsandrade commented on August 19, 2024

The same problem!

from prerender-spa-plugin.

waltergalvao avatar waltergalvao commented on August 19, 2024

Same problem :(

from prerender-spa-plugin.

devmarcelosantos avatar devmarcelosantos commented on August 19, 2024

Same problem!!

from prerender-spa-plugin.

 avatar commented on August 19, 2024

Hi, I don't think this is the same case. People here seem to have fully static SPAs. This is more like a version incompatibility between used components though I've not been able to repeat it. The best way for me to understand would be to share the exact repo that's not working and specify the environment.

from prerender-spa-plugin.

kushagharahi avatar kushagharahi commented on August 19, 2024

You're right @jnrdt I was tired last night and misunderstood. I deleted my comment. I apologize.

from prerender-spa-plugin.

drewlustro avatar drewlustro commented on August 19, 2024

@kushagharahi - I downloaded your code repository and there is a key problem with it. PhantomJS hits an exception because you forgot to transpile your .js files into ES6.

Please add the following to webpack.config.js:

// ....

module: {
  rules: [
    // ... other rules
    {
      test: /\.js$/,
      loader: 'babel-loader',
      include: [
        path.join(__dirname, 'src')
      ],
      exclude: path.join(__dirname, 'node_modules')
    },
    // .. the rest of your rules
  ]
},

// ....
// rest of webpack config
// ...

I have made this change and your site prerenders without issue.

from prerender-spa-plugin.

lokkomokko avatar lokkomokko commented on August 19, 2024

@esalter-va big big thanks

from prerender-spa-plugin.

vesper8 avatar vesper8 commented on August 19, 2024

same problem... =/

from prerender-spa-plugin.

dhruvbhatia7 avatar dhruvbhatia7 commented on August 19, 2024

same problem

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.