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
I am trying to use recognizeDateTime. When I build it in Typescript it builds just fine but at runtime I get an error saying it can't find the function. After some digging if I remove './../common/temp/node_modules/.pnpm/@microsoft/[email protected]/node_modules/@microsoft/recognizers-text-suite/dist/recognizers-text-suite.browser.js' from the package.json it uses the "main" version instead 'dist/recognizers-text-suite.umd.js'. When it uses that version it finds the function and everything works. Do you know how to explicitly say use the version that maps to main instead of the browser version?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi-
I am trying to use recognizeDateTime. When I build it in Typescript it builds just fine but at runtime I get an error saying it can't find the function. After some digging if I remove './../common/temp/node_modules/.pnpm/@microsoft/[email protected]/node_modules/@microsoft/recognizers-text-suite/dist/recognizers-text-suite.browser.js' from the package.json it uses the "main" version instead 'dist/recognizers-text-suite.umd.js'. When it uses that version it finds the function and everything works. Do you know how to explicitly say use the version that maps to main instead of the browser version?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions