You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for making this template, it simplifies the process so much!
I have a question that may be simple to solve, or I may be misunderstanding something more fundamental.
I want to import a function from a TS file into the App svelte component from your template. The function uses the Twitter v2 API, so that might be causing an issue.
I use the following code to import the function into App:
Thank you for making this template, it simplifies the process so much!
I have a question that may be simple to solve, or I may be misunderstanding something more fundamental.
I want to import a function from a TS file into the App svelte component from your template. The function uses the Twitter v2 API, so that might be causing an issue.
I use the following code to import the function into App:
Where the
twitter.ts
file looks like so:When running the code, I get the following error:
Error: Unexpected token (Note that you need plugins to import files that are not JavaScript)
.Is it that I just need a rollup-plugin? Please let me know if there is something to do differently.
Thank you for reading this :)
The text was updated successfully, but these errors were encountered: