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-kanban-board - Error: Cannot find module 'node:os' #5157

Closed
2 of 9 tasks
spawninho10 opened this issue May 31, 2024 · 4 comments · Fixed by #5159
Closed
2 of 9 tasks

react-kanban-board - Error: Cannot find module 'node:os' #5157

spawninho10 opened this issue May 31, 2024 · 4 comments · Fixed by #5159
Labels
type:bug-suspected Suspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs

Comments

@spawninho10
Copy link

spawninho10 commented May 31, 2024

Disclaimer

Yes

Sample

react-kanban-board

Contributor(s)

@RamPrasadMeenavalli @westerdaled @petkir @AJIXuMuK

What happened?

My node version is 14.17.5 and I run npm install. This seems to run just fine. then when I run gulp serve, I get the error...
Error: Cannot find module 'node:os'
here is what my terminal looks like
image

my package.json looks like this...
image

Steps to reproduce

  1. Switched to node version 14.17.5
  2. run npm install
  3. run gulp serve

Expected behavior

I expected that I would be able to serve using the specified node version to my dev tenant.

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?

v14.17.5

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

v14 | v12

Paste the results of SPFx doctor

image

Additional environment details

No response

@spawninho10 spawninho10 added the type:bug-suspected Suspected bug (not working as designed/expected). See type:bug-confirmed for confirmed bugs label May 31, 2024
@petkir
Copy link
Contributor

petkir commented Jun 1, 2024

Hi @spawninho10,

thanks for the error Report ;-)

I can reproduce the Error 👍

@petkir
Copy link
Contributor

petkir commented Jun 1, 2024

Alter thinking about the error.

it's better to upgrade the project to SPFX 1.19.0 /Node 18 and Change PnPJSV2 to V4

Working on it

@petkir
Copy link
Contributor

petkir commented Jun 3, 2024

so I Upgraded everything, but during testing I got some strange errors with the property controls
module cannot be found @fluentui/lib/utils/dragdrop.js
it's something with webpack or node 18 i don't know.

I have to take a deeper look!
First I moved that two controls to the source. This is not my preferred way, but currently a solution.

@petkir petkir mentioned this issue Jun 3, 2024
8 tasks
@spawninho10
Copy link
Author

Thanks for the fix

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

Successfully merging a pull request may close this issue.

2 participants