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

[Rendering] react-native: You may need an appropriate loader to handle this file type #116

Open
arvidlb opened this issue Feb 19, 2023 · 0 comments

Comments

@arvidlb
Copy link

arvidlb commented Feb 19, 2023

Target Platforms

NodeJS

SDK Version

Latest

Application Name

Dev environment

Problem Description

ERROR in ./node_modules/adaptivecards-reactnative/src/adaptive-card.js 227:12
Module parse failed: Unexpected token (227:12)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|
| var adaptiveCardContent = (
<ContainerWrapper
| configManager={this.configManager}
| style={containerStyles}

Research implies this would have to do with .JS(X) loaders in webpack. However, mine is set as follows:

rules: [
      {
        test: /\.jsx?$/,
        exclude: /node_modules/,
        loader: 'babel-loader',
        options: {
          presets: ['@babel/preset-env', '@babel/preset-react'],
        },
      },
      {
        test: /\.js$/,
        exclude: /node_modules/,
        loader: 'babel-loader',
        options: {
          presets: ['@babel/preset-env', '@babel/preset-react'],
        },
      },

Screenshots

No response

Card JSON

N/A

Sample Code Language

No response

Sample Code

No response

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