kandi background
kandi background
Explore Kits
kandi background
Explore Kits
kandi background
Explore Kits
kandi background
Explore Kits
Explore all Transformer open source software, libraries, packages, source code, cloud functions and APIs.

Popular New Releases in Transformer

v4.18.0: Checkpoint sharding, vision models

0.33.2

v1.1.1

v2.0.0 - Integration into Huggingface Model Hub

Python v0.12.1

transformers

v4.18.0: Checkpoint sharding, vision models

vit-pytorch

0.33.2

gpt-neo

v1.1.1

sentence-transformers

v2.0.0 - Integration into Huggingface Model Hub

tokenizers

Python v0.12.1

Popular Libraries in Transformer

Trending New libraries in Transformer

Top Authors in Transformer

1

43 Libraries

21211

2

17 Libraries

10083

3

13 Libraries

8331

4

11 Libraries

1079

5

9 Libraries

525

6

9 Libraries

424

7

9 Libraries

966

8

9 Libraries

2867

9

8 Libraries

33713

10

8 Libraries

42

1

43 Libraries

21211

2

17 Libraries

10083

3

13 Libraries

8331

4

11 Libraries

1079

5

9 Libraries

525

6

9 Libraries

424

7

9 Libraries

966

8

9 Libraries

2867

9

8 Libraries

33713

10

8 Libraries

42

Trending Kits in Transformer

No Trending Kits are available at this moment for Transformer

Trending Discussions on Transformer

    Cannot read properties of undefined (reading 'transformFile') at Bundler.transformFile
    What is this GHC feature called? `forall` in type definitions
    Why Reader implemented based ReaderT?
    How to get all properties of type alias into an array?
    Netlify says, "error Gatsby requires Node.js 14.15.0 or higher (you have v12.18.0)"β€”yet I have the newest Node version?
    Determine whether the Columns of a Dataset are invariant under any given Scikit-Learn Transformer
    ValueError after attempting to use OneHotEncoder and then normalize values with make_column_transformer
    What are differences between AutoModelForSequenceClassification vs AutoModel
    How can I check a confusion_matrix after fine-tuning with custom datasets?
    How to get SHAP values for Huggingface Transformer Model Prediction [Zero-Shot Classification]?

QUESTION

Cannot read properties of undefined (reading 'transformFile') at Bundler.transformFile

Asked 2022-Mar-29 at 12:36

I have updated node today and I'm getting this error:

1error: TypeError: Cannot read properties of undefined (reading 'transformFile')
2    at Bundler.transformFile (/Users/.../node_modules/metro/src/Bundler.js:48:30)
3    at runMicrotasks (<anonymous>)
4    at processTicksAndRejections (node:internal/process/task_queues:96:5)
5    at async Object.transform (/Users/.../node_modules/metro/src/lib/transformHelpers.js:101:12)
6    at async processModule (/Users/.../node_modules/metro/src/DeltaBundler/traverseDependencies.js:137:18)
7    at async traverseDependenciesForSingleFile (/Users/.../node_modules/metro/src/DeltaBundler/traverseDependencies.js:131:3)
8    at async Promise.all (index 0)
9    at async initialTraverseDependencies (/Users/.../node_modules/metro/src/DeltaBundler/traverseDependencies.js:114:3)
10    at async DeltaCalculator._getChangedDependencies (/Users/.../node_modules/metro/src/DeltaBundler/DeltaCalculator.js:164:25)
11    at async DeltaCalculator.getDelta (/Users/.../node_modules/metro/src/DeltaBundler/DeltaCalculator.js:94:16)
12

Other than that I haven't done anything unusual, so I'm not sure what to share. If I'm missing any info please comment and I'll add it.

While building the terminal also throws this error:

1error: TypeError: Cannot read properties of undefined (reading 'transformFile')
2    at Bundler.transformFile (/Users/.../node_modules/metro/src/Bundler.js:48:30)
3    at runMicrotasks (<anonymous>)
4    at processTicksAndRejections (node:internal/process/task_queues:96:5)
5    at async Object.transform (/Users/.../node_modules/metro/src/lib/transformHelpers.js:101:12)
6    at async processModule (/Users/.../node_modules/metro/src/DeltaBundler/traverseDependencies.js:137:18)
7    at async traverseDependenciesForSingleFile (/Users/.../node_modules/metro/src/DeltaBundler/traverseDependencies.js:131:3)
8    at async Promise.all (index 0)
9    at async initialTraverseDependencies (/Users/.../node_modules/metro/src/DeltaBundler/traverseDependencies.js:114:3)
10    at async DeltaCalculator._getChangedDependencies (/Users/.../node_modules/metro/src/DeltaBundler/DeltaCalculator.js:164:25)
11    at async DeltaCalculator.getDelta (/Users/.../node_modules/metro/src/DeltaBundler/DeltaCalculator.js:94:16)
12Failed to construct transformer:  Error: error:0308010C:digital envelope routines::unsupported
13    at new Hash (node:internal/crypto/hash:67:19)
14    at Object.createHash (node:crypto:130:10)
15    at stableHash (/Users/.../node_modules/metro-cache/src/stableHash.js:19:8)
16    at Object.getCacheKey (/Users/.../node_modules/metro-transform-worker/src/index.js:593:7)
17    at getTransformCacheKey (/Users/.../node_modules/metro/src/DeltaBundler/getTransformCacheKey.js:24:19)
18    at new Transformer (/Users/.../node_modules/metro/src/DeltaBundler/Transformer.js:48:9)
19    at /Users/.../node_modules/metro/src/Bundler.js:22:29
20    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
21  opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
22  library: 'digital envelope routines',
23  reason: 'unsupported',
24  code: 'ERR_OSSL_EVP_UNSUPPORTED'
25}
26

My node, npx and react-native versions are:

  • node: 17.0.0
  • npx: 8.1.0
  • react-native-cli: 2.0.1

ANSWER

Answered 2021-Oct-27 at 17:19

Ran into the same issue with Node.js 17.0.0. To solve it, I downgraded to version 14.18.1, deleted node_modules and reinstalled.

Source https://stackoverflow.com/questions/69647332