I initially installed the typings for luxon using
npm install --save-dev @types/luxon
. However, upon further evaluation, I realized that it was unnecessary and decided to remove it manually:
- deleted the folder node_modules/@types/luxon
- removed entries in package.json
- erased references to luxon in package-lock.json
Despite these removals, I continue to encounter an error after building in Visual Studio 2022:
Build: Namespace 'Intl' does not have an exported member 'DateTimeFormatPart' with a project path that appears incorrect (C:\dev\...\node_modules@types\luxon\src\datetime.d.ts 1238).
Even attempting to use npm prune
did not resolve this issue.