Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-caml2table doesn't build #4685

Open
1 of 9 tasks
erikstagg opened this issue Jan 29, 2024 · 6 comments
Open
1 of 9 tasks

react-caml2table doesn't build #4685

erikstagg opened this issue Jan 29, 2024 · 6 comments
Assignees
Labels
sample: react-caml2table type:bug-suspected Suspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs

Comments

@erikstagg
Copy link

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)
  • 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 erikstagg added the type:bug-suspected Suspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs label Jan 29, 2024
@ghost
Copy link

ghost commented Jan 29, 2024

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

@ghost ghost added the Needs: Triage 🔍 label Jan 29, 2024
@Tanddant
Copy link
Contributor

Hi there @erikstagg

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

@erikstagg
Copy link
Author

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'

@Tanddant
Copy link
Contributor

@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 😊

@erikstagg
Copy link
Author

No worries. thanks!

@Tanddant
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sample: react-caml2table type:bug-suspected Suspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs
Projects
None yet
Development

No branches or pull requests

3 participants