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.

Cannot find file 'Exports.js'

See original GitHub issue

Hi, I’m having a very annoying problem trying to import Unity from the npm package…

Describe the bug I’m stuck getting this error:

./src/components/UnityView/UnityView.js
Cannot find file: 'Exports.js' does not match the corresponding name on disk: '.\node_modules\react-unity-webgl\distribution\exports.js'.

And no matter what I try, I’m always getting the same.

To Reproduce Basically I’m following the basic quick start guide and I’m just doing this:

import Unity from 'react-unity-webgl' 

I didn’t even begin to do a more complex behaveour and it’s weird because I’ve used this package before and have never has a problem like this and I don’t know if I’m missing something or did something wrong…

I installed the package just using this as always:

npm install react-unity-webgl

Desktop (please complete the following information):

  • OS: Windows 10 Pro
  • Browser: Chrome
  • Version: 85.0.4183.121

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
fezproofcommented, Jun 24, 2021

Looks good to me! Amazing turnaround thankyou 😄

image

1reaction
jeffreylanterscommented, Jun 24, 2021

Hi! Thanks for reporting this problem. I think this is an issue caused by Git. I’ll push an hotfix later today.

Read more comments on GitHub >

github_iconTop Results From Across the Web

3 Answers - 3 - Stack Overflow
The 'aws-exports.js' file gets created automatically when AWS Amplify runs the CI/CD ...
Read more >
Issues - GitHub
js Cannot find file '../aws-exports' in './src/pages'. ... Steps to reproduce the behavior: Create a react js application; Initialize the ...
Read more >
AWS Amplify TypeScript aws-exports.js - Duncan Leung
Importing aws-exports.js with TypeScript Error I was running into an issue using the AWS Amplify amplify-js package in a TypeScript project…
Read more >
module-not-found - Next.js
The module you're trying to import is in a different directory. Make sure that the path you're importing refers to the right directory...
Read more >
find-unused-exports - npm
find -unused-exports. A Node.js CLI and equivalent JS API to find unused ECMAScript module exports in a project.
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