Mif2006 / Space-Portolio

https://space-portolio.vercel.app
242 stars 172 forks source link

Syntax Error While Importing maath-random.esm.js #3

Closed Nlferu closed 9 months ago

Nlferu commented 10 months ago

Hello

I'm facing below error every single time I refresh localhost. Once I remove component from app -> refresh host website is working correctly, then if I add StarsCanvas again and save file website will reload and stars are displayed correctly, everything working until I refresh website again. Does anyone have any idea how to fix that issue?

image

Nlferu commented 9 months ago

Problem solved thanks to @asobiesk by changing import line from:

import * as random from "maath/random/dist/maath-random.esm"

into

import * as random from "maath/random"