Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mirror does not compile on latest release! The type or namespace name 'WhereAllocation' could not be found #2955

Closed
CiberX15 opened this issue Oct 1, 2021 · 3 comments

Comments

@CiberX15
Copy link

CiberX15 commented Oct 1, 2021

Just imported mirror to my project and I am getting a "The type or namespace name 'WhereAllocation' could not be found" error

From documentation it looks like WhereAllocation is supposed to be part of mirror so I don't know how it could be missing, but I'm not finding it anywhere in my project either.

Suspect it was simply not included in the latest version on the unity asset store.

I downloaded and installed a previous version a month or so ago and didn't have any problems so I assume this is something new to one of the recent updates.

Repro:
-Start a new project
-Go to my assets in the asset store page
-Locate mirror, and update to latest version
-Import latest version of mirror
-Check console
-Observe code does not compile. WhereAllocation is missing

@MrGadget1024
Copy link
Collaborator

It is in the asset store release. Per the ReadMe, you need to restart Unity after importing Mirror.
If that doesn't fix it, completely remove Mirror, re-import from the asset store, and restart Unity again.

image

@CiberX15
Copy link
Author

CiberX15 commented Oct 2, 2021

Sorry just getting back to this. That does not appear to have helped. Deleted the entire Mirror folder, re-imported, then closed unity and re-opened it. The NonAlloc errors persisted. Just to be 100% sure I deleted Mirror again, closed unity, opened, it, imported, closed unity, opened unity, the issue still did not resolve.

Now that you have pointed them out, I can find the where-allocation folder, but the compiler still can't find it.
I am on Unity 2018.4.2.4f1 using .Net 4.x

image

@MrGadget1024
Copy link
Collaborator

I am on Unity 2018.4.2.4f1 using .Net 4.x

Mirror requires Unity 2019 LTS or 2020 LTS. 2018 is no longer supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants