0

I am using threejs in a vue project and I faced the same error as this when I was trying to create a text geometry even though the path to the typeface font is correct and it's json

1
  • Please provide enough code so others can better understand or reproduce the problem. Commented Jul 17, 2022 at 22:17

1 Answer 1

0

I had the same issue, however I didn't figure out why loader.load was throwing this error. I solved it using loader.parse

Import the typeface json

import fontJson from "/src/assets/font/helvetiker_regular.typeface.json";

Use loader.parse instead

const font = loader.parse(fontJson);

If this won't work you aswell, maybe something is wrong with your JSON. I am sorry :(

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.