Source file requires different compiler version (current compiler is 0.8.4+commit.c7e474f2.Emscripten.clang) - note that nightly builds are considered to be strictly less than the released version
/*Change your compiler version also add SPDX-license*/
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
Source file requires different compiler version (current compiler is 0.8.16+commit.07a7930e.Emscripten.clang) - note that nightly builds are considered to be strictly less than the released version
just add "^" to your version.
example :
0.8.8 ==> ^0.8.8