Cannot find file 'Exports.js'
See original GitHub issueHi, 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:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Looks good to me! Amazing turnaround thankyou 😄
Hi! Thanks for reporting this problem. I think this is an issue caused by Git. I’ll push an hotfix later today.