Comments (6)
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.
this has already been done in the @next
release
from threlte.
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.
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.
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.
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)
- [documentation] Mobile Nav doesn't work after navigation HOT 1
- Font still loads from Google's CDN despite choosing to using a local font... HOT 3
- Getting warnings from the console, despite 'characters' and 'sdfGlyphSize' not being a required dependency. HOT 1
- Homogenize Top Bar Layout
- Porting drei
- Formatting indents with spaces or tabs consistantly across the codebase
- Showcase page images don't work in Firefox or Safari and causes crash
- Improve or replace Tweakpane for readability and to fix StackBlitz examples
- Rename `<Center>` to `<Align>`
- Align labels in CONTRIBUTING.md to labels used in GitHub HOT 1
- Clean up the Documentation Layout HOT 1
- Feedback button & form on a sidebar HOT 2
- [xr] Provide fallback slot in `<XR>` HOT 2
- [xr] Provide `<Head>` component HOT 4
- [xr] Controller events fire multiple times if `<Controller>` is mounted multiple times
- [xr] Tighten types around `<Controller left|right />`
- [xr] Rename property `controller` to `targetRay` in `useController` return
- [xr] Move `useGamepad` to extras, add `useMappedGamepad` hook
- Add smoothing to `<TeleportControls>` based on target distance
- Documentation of basics of XR development
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from threlte.