teovillanueva / react-native-web-maps

Cross platform maps for react & react-native 🗺
https://teovillanueva.github.io/react-native-web-maps/
MIT License
57 stars 14 forks source link

Uncaught Error: Module parse failed: Unexpected token #15

Closed ogheneovo12 closed 1 year ago

ogheneovo12 commented 1 year ago

Uncaught Error: Module parse failed: Unexpected token (1:12) File was processed with these loaders:

ogheneovo12 commented 1 year ago

duplicate issue of #8 and #12, fix is in #14 waiting to be published.

temporarily work around, pending package update

const createExpoWebpackConfigAsync = require("@expo/webpack-config");

module.exports = async function (env, argv) {
  const config = await createExpoWebpackConfigAsync(env, argv);
  config.resolve.alias["react-native$"] = "react-native-web";
  config.resolve.alias["react-native-maps"] = "@teovilla/react-native-web-maps";
  config.resolve.alias["@teovilla/react-native-web-maps/src/utils/region"] =
    "../../utils/region";
  return config;
};
teovillanueva commented 1 year ago

Hello, i just published version 0.6.3, this issue should be fixed. Sorry for the delay, i've been very busy :(