Skip to content

Old N8AO dependency in package.json is causing Shader Error 0 when three.js > 0.166.0 is installed as well #291

@ayan4m1

Description

@ayan4m1

For context, see N8python/n8ao#32

Basically, postprocessing depends explicitly on a fairly old version of N8AO , which is not compatible with Three.js starting from 0.166.0. This means that if you use the N8AO convenience component in postprocessing, you will get a Shader Error unless you hold three.js back.

I think there are multiple possible solutions here:

  1. Kick the can and just bump n8ao to latest in package.json
  2. Make n8ao a peerDependency with a semver range like "1.x" and then make the user install/upgrade it on their own
  3. Document the bug and do nothing else

My preference would be for the second choice, but obviously open to discussion. Happy to open a PR if there is consensus.

Repro: https://github.com/ayan4m1/leela-memorial (then upgrade three.js to latest and run yarn install, npm start, go to "3D view" page and observe error)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions