Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 07 2020 07:44

    dependabot[bot] on npm_and_yarn

    (compare)

  • Sep 07 2020 07:44

    dependabot[bot] on npm_and_yarn

    (compare)

  • Sep 07 2020 07:44

    dependabot[bot] on npm_and_yarn

    (compare)

  • Sep 07 2020 07:44

    dependabot[bot] on npm_and_yarn

    (compare)

  • Sep 07 2020 07:44

    dependabot[bot] on npm_and_yarn

    (compare)

  • Sep 07 2020 07:44

    dependabot[bot] on npm_and_yarn

    (compare)

  • Sep 07 2020 07:44
    dependabot[bot] commented #1293
  • Sep 07 2020 07:44
    dependabot[bot] commented #1292
  • Sep 07 2020 07:44
    dependabot[bot] commented #1291
  • Sep 07 2020 07:44
    dependabot[bot] commented #1290
  • Sep 07 2020 07:44
    MoOx closed #1293
  • Sep 07 2020 07:44
    dependabot[bot] commented #1288
  • Sep 07 2020 07:44
    MoOx closed #1292
  • Sep 07 2020 07:44
    dependabot[bot] commented #1287
  • Sep 07 2020 07:44
    MoOx closed #1291
  • Sep 07 2020 07:44
    MoOx closed #1290
  • Sep 07 2020 07:44
    MoOx closed #1288
  • Sep 07 2020 07:44
    MoOx closed #1287
  • Sep 07 2020 07:44

    MoOx on master

    DEPRECATED (compare)

  • Sep 03 2020 23:50
    dependabot[bot] labeled #1293
Arthur Clemens
@ArthurClemens
My posts with draft look like this:
---
title:        "Some title"
date:         "2017-04-11"
draft:        1
---

Content
MoOx
@MoOx
Maybe this is causing an issue
Will have a look later today
Arthur Clemens
@ArthurClemens
:thumbsup:
Another question: playing with a statically rendered site, I am struggling to get the main navigation to highlight the current page. Apparently at build time router.getCurrentLocation().pathname is always /, so I cannot derive which nav button to select as current.
perhaps this is more a react-router issue though
MoOx
@MoOx
I don't have any problem with that on my side
@ArthurClemens can you confirm that draft are killing static rendering?
I think I didn't finish this draft feature lol :/
Arthur Clemens
@ArthurClemens
draft as page prop does kill it with error Cannot read property 'data' of undefined
MoOx
@MoOx
yeah but no issue in dev mode right?
I think that's an easy fix, I guess I could fix it (I am in a train atm) and put a release later today
Arthur Clemens
@ArthurClemens
dev mode works fine
MoOx
@MoOx
ok thanks for the confirmation
I know what to do :)
Arthur Clemens
@ArthurClemens

I don't have any problem with that on my side

Perhaps you don’t use getCurrentLocation

MoOx
@MoOx
indeed
I use router.location.pathname without any problem
Arthur Clemens
@ArthurClemens
that works. Thanks!
MoOx
@MoOx
react-router should brings the right version itself
so no need to specify it on your side
(r-r v3 use history v2 no?)
Arthur Clemens
@ArthurClemens
"react-router": "^3.2.1” and I got "history": "^3.3.0"
MoOx
@MoOx
right
you are right
I guess we don't have anything to do from our side, if people mess with history version I cannot help :D
Arthur Clemens
@ArthurClemens
If I remove history from package.json, it is not automatically found: Can't resolve ‘history'
MoOx
@MoOx
hum weird
like very weird, it's a dep or r-r, so must be there
what npm are you using?
Arthur Clemens
@ArthurClemens
6.5.0-next.0
MoOx
@MoOx
oh I see
Maybe that's the reason
I am using yarn
Arthur Clemens
@ArthurClemens
yarn gave me headaches, I am trying to avoid it
because it uses a different npm under the hood, you can get all kinds of weird problems
MoOx
@MoOx
never had problem with it while using it for months... years now?
npm SHOULD get history from r-r 3 tho
Anyway it's nice to have differents env
MoOx
@MoOx
beta 9 is out @ArthurClemens
Arthur Clemens
@ArthurClemens
great
Arthur Clemens
@ArthurClemens
Is there a way to generate a unique filename for the bundled js file, e.g. using a content hash?
Arthur Clemens
@ArthurClemens
Webpack can create one, but I have to deal with the script tag in Html.js which inserts the hardcoded filename in every html file.
Arthur Clemens
@ArthurClemens
I’ve got it working with https://www.npmjs.com/package/shortid - by creating a unique ID and using it in Html.js and in webpack config.
Arthur Clemens
@ArthurClemens
Using this trick with css files is nastier, because the reference to the files are baked in the bundled js, so this creates a mismatch
Arthur Clemens
@ArthurClemens
Solved by creating a prebuild script that generates a js file that exports the unique id, and import that in various places
Arthur Clemens
@ArthurClemens
When buidling, I am getting a warning Invalid attribute name: ‘<br’. Is there a way to find out which content page (.md) this happens?