Skip to main content

Posts

Showing posts with the label Error

Error while compiling spfx project - Error - typescript - node_modules/@fluentui/react-focus/node_modules

 Some when you create new project or upgrade existing project, developer get issues related to fluent ui packages i.e. : Error - typescript - node_modules/@fluentui/react-focus/node_modules/@uifabric/merge-styles/lib/DeepPartial.d.ts(4,26): error TS1005: ';' expected. Error - typescript - node_modules/@fluentui/react-focus/node_modules/@uifabric/merge-styles/lib/DeepPartial.d.ts(4,41): error TS1005: ')' expected. Error - typescript - node_modules/@fluentui/react-focus/node_modules/@uifabric/merge-styles/lib/DeepPartial.d.ts(4,42): error TS1005: ';' expected. Error - typescript - node_modules/@fluentui/react-focus/node_modules/@uifabric/merge-styles/lib/DeepPartial.d.ts(4,72): error TS1005: ';' expected. Error - typescript - node_modules/@fluentui/react-focus/node_modules/@uifabric/merge-styles/lib/DeepPartial.d.ts(4,107): error TS1005: '(' expected. Error - typescript - node_modules/@fluentui/react-focus/node_modules/@uifabric/merge-styles/lib/De...

Getting error when creating new SPFx solution or adding a new webpart in existing SPFx solution

 I formatted my laptop and installed all fresh software on it. When I was trying to create a new SPFx solution, I was getting an error : C:\Users\Hp\AppData\Roaming\npm\node_modules\yo\node_modules\yeoman-environment\lib\resolver.js:70 filePatterns: lookups.flatMap(prefix => [`${prefix}/*/index.ts`, `${prefix}/*/index.js`, `${prefix}/*/index.cjs`, `${prefix}/*/index.mjs`]), ^ TypeError: lookups.flatMap is not a function at Environment.resolver.lookup (C:\Users\Hp\AppData\Roaming\npm\node_modules\yo\node_modules\yeoman-environment\lib\resolver.js:70:27) at init (C:\Users\Hp\AppData\Roaming\npm\node_modules\yo\lib\cli.js:130:7) at pre (C:\Users\Hp\AppData\Roaming\npm\node_modules\yo\lib\cli.js:89:3) at Object.<anonymous> (C:\Users\Hp\AppData\Roaming\npm\node_modules\yo\lib\cli.js:219:3) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32)...