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

Unable to run sample #54

Open
bbrandt opened this issue Mar 5, 2025 · 1 comment
Open

Unable to run sample #54

bbrandt opened this issue Mar 5, 2025 · 1 comment

Comments

@bbrandt
Copy link

bbrandt commented Mar 5, 2025

What dependencies are required?

  • Node version?
  • Yarn version?
  • Others?

I am getting an error with my current versions.

node --version
v18.20.7
>yarn --version   
4.7.0
> yarn start       
Option "browserTarget" is deprecated: Use 'buildTarget' instead.
⠹ Generating browser application bundles (phase: setup)...An unhandled exception occurred: ⨯ Unable to compile TypeScript:
custom-webpack.config.ts:1:1 - error TS2591: Cannot find name 'module'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.

1 module.exports = {
  ~~~~~~
custom-webpack.config.ts:12:15 - error TS2591: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.

12               require('postcss-import'),
                 ~~~~~~~
custom-webpack.config.ts:13:15 - error TS2591: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.

13               require('tailwindcss'),
                 ~~~~~~~
custom-webpack.config.ts:14:15 - error TS2591: Cannot find name 'require'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.

14               require('autoprefixer'),
                 ~~~~~~~

Also tested with node@20.

@bbrandt
Copy link
Author

bbrandt commented Mar 5, 2025

In #55 I have documented the required versions in engines section package.json. volta section added for anyone that uses that tooling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant