Error using TypeScript package using workspace in gatsby-node.ts : ReferenceError: Cannot access 'D' before initialization #38927
Labels
status: triage needed
Issue or pull request that need to be triaged and assigned to a reviewer
type: bug
An issue or pull request relating to a bug in Gatsby
Preliminary Checks
Description
🟢 VALID:
import { DISABLED_LOCALE_CODES } from "../constants";
🔴 ERROR (only in gatsby-node file):
import { DISABLED_LOCALE_CODES } from "@pkgs-frontend/constants";
Trying to use custom package
@pkgs-frontend/constants
in pkg-pages/gatsby-node.ts will throw mentioned error. Using the package along the same packagepkg-pages
but within pages works fine.tsconfig.json of pkgs-frontend constants
Reproduction Link
NA
Steps to Reproduce
...
Expected Result
Successful build.
Actual Result
Environment
Config Flags
No response
The text was updated successfully, but these errors were encountered: