react-native-svg
react-native-svg copied to clipboard
error: Error: Unable to resolve module `../../src/entities` from `node_modules\dom-serializer\index.js`: #115
Packages: "react": "16.11.0", "react-native": "0.62.2", "react-native-svg": "^12.1.0",
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.
Check that your babel config doesn't apply rules with "entities" at the module resolver, alias section
Unable to resolve "../../assets/svg/icon-owner.svg" from "../src/pages/station-authorization/index.tsx"
const path = require('path');
const pak = require('../package.json');
module.exports = function (api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
plugins: [
[
'module-resolver',
{
extensions: ['.tsx', '.ts', '.js', '.svg', '.jsx', '.json'],
alias: {
// For development, we want to alias the library to the source
[pak.name]: path.join(__dirname, '..', pak.source),
},
},
],
],
};
};