react-native-svg icon indicating copy to clipboard operation
react-native-svg copied to clipboard

error: Error: Unable to resolve module `../../src/entities` from `node_modules\dom-serializer\index.js`: #115

Open ganjargal opened this issue 5 years ago • 3 comments

Packages: "react": "16.11.0", "react-native": "0.62.2", "react-native-svg": "^12.1.0",

ganjargal avatar Jun 17 '20 10:06 ganjargal

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.

stale[bot] avatar Aug 16 '20 12:08 stale[bot]

Check that your babel config doesn't apply rules with "entities" at the module resolver, alias section

dmitrii-cyberdog avatar Dec 07 '22 23:12 dmitrii-cyberdog

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),
          },
        },
      ],
    ],
  };
};

krmao avatar Dec 13 '23 03:12 krmao