Comments (5)
There's no way anyone can help without some background on what you're trying to do. It appears you're trying to build MV into your own TS project of some kind? Are you using a particular framework for that? There must be something wrong with how the dependency or import is specified, so maybe start by showing those from your code?
from model-viewer.
i am using React for this. as usual i have imported the MV in the App.js file import @google/model-viewer
and using it across the app
from model-viewer.
"as usual" makes it sound like you've done this before and it's worked with model-viewer? Did something change recently? We don't have any React experience on this team, but others on our forums do and we know they've used it successfully, so it's probably some kind of import magic. Have you searched our discussions yet?
from model-viewer.
I assume @Pratik610 is using Webpack because if so version 5 of Webpack has a breaking change that requires imports to have a file extension. The relevant section is below. There is a flag to use the legacy behavior. I will try the flag as I am having the same issue. Ideally the file extensions could be added to model-viewer as well.
Imports in ESM are resolved more strictly. Relative requests must include a filename and file extension (e.g. *.js or *.mjs) unless you have the behaviour disabled with fullySpecified=false.
from model-viewer.
@chamby Thanks! PRs welcome if you find a change that will simplify this for users.
from model-viewer.
Related Issues (20)
- Unable to get canvas of the invisible model if there are multiple models on the page and there are less than two models visible HOT 4
- use of "auto" in /editor/ output creates wrong orbit distance
- Is is possible to launch AR mode automatically?
- Missing propagation of the progress event reason
- Frames Rendering to Incorrect Canvas - Multiple Model-Viewers on Page HOT 6
- Ar button problem HOT 1
- How to access the hierarchy and then Three.js changes each object. HOT 1
- When I use scene viewer the model is placed sideways. HOT 1
- Setup lantern demo : bulb light should be visible outside of lantern box
- Generated usdz has a random y rotation when the auto-rotate attribute is used HOT 2
- Generated USDZ files don't work anymore on VisionOS 1.2 beta HOT 5
- AutoUSDZ broken in iOS 17.5 beta HOT 18
- xr-environment attribute causes errors the second time a webxr session is started HOT 6
- WebXR mode does not time out when it fails HOT 4
- iOS REGRESSION: Apple Pay banner fails to render when opening AR QuickLook with USDZ blob
- modelviewer ar-placement= wall is flipping the glb model HOT 10
- Object requires a newer version of iOS HOT 13
- safari artifact issue HOT 2
- Microsoft Edge app browser does not launch AR Quick Look on iOS
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 model-viewer.