Does anybody know how to properly set up a Non-relative module imports such as
import { Component } from "@foo/ui";
in a pcf project?
I have setup the tsconfig.json with the baseUrl & paths. In vscode, it found the library without issues and intellisense works.
"baseUrl": ".",
"paths": {
"@foo/ui": ["../../libs/ui/src"]
}
But when I run the build command it reported back "Module not found: Error: Can't resolve '@foo/ui'.
It then proceeded to search in "node_modules", which is wrong since @foo is my own ts project.
WarrenBelz
87
Most Valuable Professional
mmbr1606
71
Super User 2025 Season 1
Michael E. Gernaey
65
Super User 2025 Season 1