Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

error: Error: While trying to resolve module `idb` from file

module.exports = {
  transformer: {
    getTransformOptions: async () => ({
      transform: {
        experimentalImportSupport: false,
        inlineRequires: true,
      },
    }),
  },
  //added this
  resolver: {
    sourceExts: ['jsx', 'js', 'ts', 'tsx', 'cjs'],
  },
};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #While #resolve #module #file
ADD COMMENT
Topic
Name
6+1 =