Skip to content

Unable to run sample #54

Description

@bbrandt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions