sp-dev-fx-webparts icon indicating copy to clipboard operation
sp-dev-fx-webparts copied to clipboard

react-caml2table doesn't build

Open erikstagg opened this issue 1 year ago • 6 comments

Disclaimer

Yes

Sample

react-caml2table

Contributor(s)

@tanddant

What happened?

The sample will not run complaining of multiple modules not found. I have tried running npm i using all three node versions listed as compatible (12, 14, 16) deleting the node_modules folder every time inbetween. It's a shame. I thought this would make for a great dev tool.

Steps to reproduce

  1. Clone the samples repo
  2. cd into react-caml2table and run npm i
  3. gulp serve

Expected behavior

The sample should build and run.

Target SharePoint environment

SharePoint Online

Developer environment

Windows

Browsers

  • [ ] Internet Explorer
  • [ ] Microsoft Edge
  • [ ] Google Chrome
  • [ ] FireFox
  • [ ] Safari
  • [ ] mobile (iOS/iPadOS)
  • [ ] mobile (Android)
  • [X] not applicable
  • [ ] other (enter in the "Additional environment details" area below)

What version of Node.js is currently installed on your workstation?

16.20.2, 14.18.2, 12.22.10

What version of Node.js is required by the sample?

12, 14, 16

Paste the results of SPFx doctor

file:///C:/Users/ComputerServices/AppData/Roaming/nvm/v12.22.10/node_modules/@pnp/cli-microsoft365/dist/cli/cli.js:294 c.aliases?.find(a => a === cli.currentCommandName))?.file ?? ''; ^

SyntaxError: Unexpected token '.' at Loader.moduleStrategy (internal/modules/esm/translators.js:140:18)

Additional environment details

No response

erikstagg avatar Jan 29 '24 21:01 erikstagg

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Jan 29 '24 21:01 ghost

Hi there @erikstagg

The sample was built in Node v14.19.3 - are you able to test with that specific version, just to verify 😊

Tanddant avatar Jan 29 '24 21:01 Tanddant

Hi @Tanddant

14.19.3 gives me the same error. This time only eslint which seems to be the common one missing across all the versions I've tried.

Oops! Something went wrong! :( ESLint: 8.7.0 Error: Failed to load plugin '@typescript-eslint' declared in '.eslintrc.js » @microsoft/eslint-config-spfx/lib/profiles/react » ./default': Cannot find module 'eslint'

erikstagg avatar Jan 29 '24 22:01 erikstagg

@erikstagg interesting, I'm in the middle of a move, so I don't actually have my computer available to try myself, but I'll take a look once I'm settled in again 😊

Tanddant avatar Jan 29 '24 22:01 Tanddant

No worries. thanks!

erikstagg avatar Jan 29 '24 22:01 erikstagg

@hugoabernier Are you able to assign med to this one?

Tanddant avatar Jan 31 '24 07:01 Tanddant