You cannot use modules directly under node_modules.
../src/prism-provider.tsx:1:19 - error TS roblox-ts: You cannot use modules directly under node_modules.
1 import React from "@rbxts/react";
~~~~~~
../src/prism-provider.tsx:3:49 - error TS roblox-ts: You cannot use modules directly under node_modules.
3 import { ChromaProvider, DefaultPalettes } from "@rbxts/chroma";
8 Replies
I am using a package setup with src, and a test directory which is a game setup
root tsconfig
test tsconfig
How updated are your packages
Idk what's the problem but first what I would do it to
check if everything is updated,
try reinstalling the packages
Like deleting node_modules and again
npm iYeah, deleting node_modules and out/ had no effect
Solution
Setting "preserveSymlinks": true, in my tsconfig fixed the import error
Yaay
Yeah, it fixed that issue and created a new one lol
Wut? :0
What issue?