Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Unable to use with webpack v5 #24

Open
@ultralabsgev

Description

Is there an existing issue for this?

  • I have searched the existing issues

Explain what you did

I create react app and go step by step from the stretch

Expected behavior

can't start the project, getting 'loose' mode configuration must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled)

Describe the bug

'loose' mode configuration must be the same for @babel/plugin-proposal-class-properties, @babel/plugin-proposal-private-methods and @babel/plugin-proposal-private-property-in-object (when they are enabled)

Steps To Reproduce

npx create-react-app my-app --template typescript
npm install react-native-safe-area-context
npm i @rneui/base @rneui/themed react-native-web react-native-vector-icons
npm i --dev @babel/plugin-proposal-class-properties customize-cra react-app-rewired
create config-overrides.js
const path = require('path');
const { override, addBabelPlugins, babelInclude } = require('customize-cra');
module.exports = override(
 ...addBabelPlugins('@babel/plugin-proposal-class-properties'),
 babelInclude([
 path.resolve(__dirname, 'node_modules/@rneui/base'),
 path.resolve(__dirname, 'node_modules/@rneui/themed'),
 path.resolve(__dirname, 'node_modules/react-native-vector-icons'),
 path.resolve(__dirname, 'node_modules/react-native-ratings'),
 path.resolve(__dirname, 'src'),
 ])
);
and run start

Screenshots

No response

Your Environment

`npx @rneui/envinfo`
 ```
 Output from `npx @rneui/envinfo` goes here.
 ```

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /