Closed dennistruemper closed 1 year ago
Hey @dennistruemper - thanks for this. .includes
is a valid function for Strings as well, I just made a typo and had .icludes
. Need to figure out why my linting is not being applied for these packages. Fix being deployed now. Cheers 🍻
Just checked out the repo, ran "ampt" to get the sandbox going. That gave me an error message of 'Error: Could not locate Svelte app - did you run
ampt build
?'So I ran (npx) ampt run build. It produced some output and (npx) ampt run dev is working now, but still a big error message:
So the reason might be this:
assetsDir?.icludes("/static")
where assetsDir is a string and includes is not supported.I use node version v16.17.0 and tried v18.17.1
When I change
assetsDir?.includes("/static")
toassetsDir?.indexOf("/static") !== -1
there are no errors left.