question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(0 , _ScaledSheet.default) is not a function

See original GitHub issue

Hello Wierd error accurs. when I import extend lib.

.env

SIZE_MATTERS_BASE_WIDTH=750
SIZE_MATTERS_BASE_HEIGHT=1336

app.js

import { ScaledSheet } from 'react-native-size-matters/extend';

(0 , _ScaledSheet.default) is not a function

<unknown>
    extend.js:4:46
loadModuleImplementation
    require.js:302:4
guardedLoadModule
    require.js:203:11
metroRequire
    require.js:122:6
<unknown>
    App.js:9
loadModuleImplementation
    require.js:302:4
guardedLoadModule
    require.js:203:11
metroRequire
    require.js:122:6
<unknown>
    index.js:6
loadModuleImplementation
    require.js:302:4

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
daibergmcommented, Feb 13, 2020

@jindong5210 Maybe you can try to update the lib to v0.3.0, because i work with that version, and extend functionality work fine

0reactions
nirskycommented, Feb 16, 2020

Gonna close this for now as it doesn’t seem to reproduce for others.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught TypeError: (0 , o.default) is not a function
It seems to be import statement somewhere in your file is incorrect. Example: (from an issue) // fails import combineReducers from "redux" ...
Read more >
typeerror: (0 , express_1.default) is not a function - You.com
I'm getting [TypeError: (0 , express_1.default) is not a function for my code. import express from "express"; const app = express (); //...
Read more >
react-native-size-matters - npm
A React-Native utility belt for scaling the size your apps UI across different sized devices. Latest version: 0.4.0, last published: 2 years ...
Read more >
is not a function or its return value is not iterable in ReactJs ...
TypeError: react__WEBPACK_IMPORTED_MODULE_0_default is not a function or its return value is not iterable 1 | import useState from 'react'; ...
Read more >
(0 , import_defineToJSON.default) is not a function - Bugs
When trying to import '@8base/auth' to a Vite+Vue 3 project, the following error is trigger by the import statement. Uncaught TypeError: (0 ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found