react-native-media-query icon indicating copy to clipboard operation
react-native-media-query copied to clipboard

Module parse failed: Unexpected token (11:25)

Open jejette opened this issue 3 years ago • 0 comments

hello. "Optional Chaining" issue

error msg -> Module parse failed: Unexpected token (11:25) 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

` Object.keys(stylesWithQuery).map((key) => {

if (!stylesWithQuery?.[key]) { return; } `

We solved it in rollup/babel. But thank you for addressing the above issue.

version

  • "react-native": ">=0.60.0",
  • "react-native-web": "0.17.2"
  • "react-native-media-query": "^1.0.7",

jejette avatar Aug 26 '21 06:08 jejette