Giter Site home page Giter Site logo

Comments (6)

seo-rii avatar seo-rii commented on May 28, 2024 2

To fix it without using @next version, create a file like src/threlte_fix.js.

import {GroundProjectedSkybox} from 'three/examples/jsm/objects/GroundProjectedSkybox';

export {GroundProjectedSkybox as GroundProjectedEnv};

Then, add this to svelte.config.js.

{
    kit: {
        alias: {
            ['three/examples/jsm/objects/GroundProjectedEnv']: 'src/threlte_fix'
        }
    }
}

from threlte.

DefinitelyMaybe avatar DefinitelyMaybe commented on May 28, 2024 1

this has already been done in the @next release

from threlte.

seo-rii avatar seo-rii commented on May 28, 2024

I think this should be reopened. It's only fixed on @next version, and if you create new project with stable version, it continues to make same error.

from threlte.

grischaerbe avatar grischaerbe commented on May 28, 2024

Hey @seo-rii,

I consider Threlte 6 to be more stable than Threlte 5 ever was. The release is very close, we should take steps to emphasize using Threlte 6 rather than Threlte 5.

from threlte.

seo-rii avatar seo-rii commented on May 28, 2024

I understand the intention to induce the use of threlte 6. But I think legacy support is also important. In particular, this is not a feature request or bug on edge cases, but a bug that prevents entire project creation in all cases. The only solution to this is to downgrade the three.js version or apply the proxy component above, but these solutions exist only in this issue and are nowhere in the official document. Existing users will type npm up into the console and explain what happened for a long time.

from threlte.

DefinitelyMaybe avatar DefinitelyMaybe commented on May 28, 2024

Legacy support is important but not always above all other considerations. Thank you for pointing out the current solutions to the issue. They'll solve it for those who have the issue.

from threlte.

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.