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
Yes, this will happen. Roblox-ts packages cant run on their own, they need a project that will use them. So, this wouldnt work
Reason for this, is that packages dont know where the RuntimeLib is located at (it doesnt even exist for packages), and so they instead search it inside _G[script], which will not be set unless a game runs.
Potential Fixes:
Use a game to run your stories
Add your RuntimeLib yourself, create a script that requires this and inserts it inside _G and make it run before any import (not sure how possible this is)
essentially, if the project is built using
npm init roblox-ts package
, throws this errorhere's my work space setup,
index.story.tsx
- index.story.tsxdefault.project.json
tsconfig.json
package.json
The text was updated successfully, but these errors were encountered: