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

Pointer to incomplete class type "reactjuce::EcmascriptEngine::Pimpl" is not allowed #297

Open
the-jasoney opened this issue Aug 11, 2022 · 3 comments

Comments

@the-jasoney
Copy link

the-jasoney commented Aug 11, 2022

When I tried implementing react-juce with my project, it came up with this error:
Error (active) E0393 pointer to incomplete class type "reactjuce::EcmascriptEngine::Pimpl" is not allowed neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 42 Error (active) E0393 pointer to incomplete class type "reactjuce::EcmascriptEngine::Pimpl" is not allowed neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 47 Error (active) E0393 pointer to incomplete class type "reactjuce::EcmascriptEngine::Pimpl" is not allowed neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 52 Error (active) E0393 pointer to incomplete class type "reactjuce::EcmascriptEngine::Pimpl" is not allowed neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 69 Error (active) E0393 pointer to incomplete class type "reactjuce::EcmascriptEngine::Pimpl" is not allowed neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 74 Error (active) E0393 pointer to incomplete class type "reactjuce::EcmascriptEngine::Pimpl" is not allowed neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 80 Error (active) E0393 pointer to incomplete class type "reactjuce::EcmascriptEngine::Pimpl" is not allowed neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 85 Error (active) E0393 pointer to incomplete class type "reactjuce::EcmascriptEngine::Pimpl" is not allowed neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 91 Error (active) E0393 pointer to incomplete class type "reactjuce::EcmascriptEngine::Pimpl" is not allowed neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 96 Error C2027 use of undefined type 'reactjuce::EcmascriptEngine::Pimpl' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 42 Error C2039 'evaluateInline': is not a member of 'std::unique_ptr<reactjuce::EcmascriptEngine::Pimpl,std::default_delete<reactjuce::EcmascriptEngine::Pimpl>>' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 42 Error C2027 use of undefined type 'reactjuce::EcmascriptEngine::Pimpl' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 47 Error C2039 'evaluate': is not a member of 'std::unique_ptr<reactjuce::EcmascriptEngine::Pimpl,std::default_delete<reactjuce::EcmascriptEngine::Pimpl>>' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 47 Error C2027 use of undefined type 'reactjuce::EcmascriptEngine::Pimpl' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 52 Error C2039 'evaluateBytecode': is not a member of 'std::unique_ptr<reactjuce::EcmascriptEngine::Pimpl,std::default_delete<reactjuce::EcmascriptEngine::Pimpl>>' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 52 Error C2027 use of undefined type 'reactjuce::EcmascriptEngine::Pimpl' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 69 Error C2039 'registerNativeProperty': is not a member of 'std::unique_ptr<reactjuce::EcmascriptEngine::Pimpl,std::default_delete<reactjuce::EcmascriptEngine::Pimpl>>' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 69 Error C2027 use of undefined type 'reactjuce::EcmascriptEngine::Pimpl' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 74 Error C2039 'registerNativeProperty': is not a member of 'std::unique_ptr<reactjuce::EcmascriptEngine::Pimpl,std::default_delete<reactjuce::EcmascriptEngine::Pimpl>>' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 74 Error C2027 use of undefined type 'reactjuce::EcmascriptEngine::Pimpl' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 80 Error C2039 'invoke': is not a member of 'std::unique_ptr<reactjuce::EcmascriptEngine::Pimpl,std::default_delete<reactjuce::EcmascriptEngine::Pimpl>>' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 80 Error C2027 use of undefined type 'reactjuce::EcmascriptEngine::Pimpl' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 85 Error C2232 '->std::unique_ptr<reactjuce::EcmascriptEngine::Pimpl,std::default_delete<reactjuce::EcmascriptEngine::Pimpl>>::reset': left operand has 'class' type, use '.' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 85 Error C2027 use of undefined type 'reactjuce::EcmascriptEngine::Pimpl' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 91 Error C2039 'debuggerAttach': is not a member of 'std::unique_ptr<reactjuce::EcmascriptEngine::Pimpl,std::default_delete<reactjuce::EcmascriptEngine::Pimpl>>' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 91 Error C2027 use of undefined type 'reactjuce::EcmascriptEngine::Pimpl' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 96 Error C2039 'debuggerDetach': is not a member of 'std::unique_ptr<reactjuce::EcmascriptEngine::Pimpl,std::default_delete<reactjuce::EcmascriptEngine::Pimpl>>' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 96
Platform: Windows 11 64-bit
Compiler: MSVC
IDE: VS2022
JUCE: 6.1.6

@vvruspat
Copy link

When I tried implementing react-juce with my project, it came up with this error: Error (active) E0393 pointer to incomplete class type "reactjuce::EcmascriptEngine::Pimpl" is not allowed neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 42 Error (active) E0393 pointer to incomplete class type "reactjuce::EcmascriptEngine::Pimpl" is not allowed neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 47 Error (active) E0393 pointer to incomplete class type "reactjuce::EcmascriptEngine::Pimpl" is not allowed neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 52 Error (active) E0393 pointer to incomplete class type "reactjuce::EcmascriptEngine::Pimpl" is not allowed neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 69 Error (active) E0393 pointer to incomplete class type "reactjuce::EcmascriptEngine::Pimpl" is not allowed neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 74 Error (active) E0393 pointer to incomplete class type "reactjuce::EcmascriptEngine::Pimpl" is not allowed neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 80 Error (active) E0393 pointer to incomplete class type "reactjuce::EcmascriptEngine::Pimpl" is not allowed neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 85 Error (active) E0393 pointer to incomplete class type "reactjuce::EcmascriptEngine::Pimpl" is not allowed neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 91 Error (active) E0393 pointer to incomplete class type "reactjuce::EcmascriptEngine::Pimpl" is not allowed neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 96 Error C2027 use of undefined type 'reactjuce::EcmascriptEngine::Pimpl' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 42 Error C2039 'evaluateInline': is not a member of 'std::unique_ptr<reactjuce::EcmascriptEngine::Pimpl,std::default_delete<reactjuce::EcmascriptEngine::Pimpl>>' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 42 Error C2027 use of undefined type 'reactjuce::EcmascriptEngine::Pimpl' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 47 Error C2039 'evaluate': is not a member of 'std::unique_ptr<reactjuce::EcmascriptEngine::Pimpl,std::default_delete<reactjuce::EcmascriptEngine::Pimpl>>' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 47 Error C2027 use of undefined type 'reactjuce::EcmascriptEngine::Pimpl' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 52 Error C2039 'evaluateBytecode': is not a member of 'std::unique_ptr<reactjuce::EcmascriptEngine::Pimpl,std::default_delete<reactjuce::EcmascriptEngine::Pimpl>>' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 52 Error C2027 use of undefined type 'reactjuce::EcmascriptEngine::Pimpl' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 69 Error C2039 'registerNativeProperty': is not a member of 'std::unique_ptr<reactjuce::EcmascriptEngine::Pimpl,std::default_delete<reactjuce::EcmascriptEngine::Pimpl>>' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 69 Error C2027 use of undefined type 'reactjuce::EcmascriptEngine::Pimpl' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 74 Error C2039 'registerNativeProperty': is not a member of 'std::unique_ptr<reactjuce::EcmascriptEngine::Pimpl,std::default_delete<reactjuce::EcmascriptEngine::Pimpl>>' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 74 Error C2027 use of undefined type 'reactjuce::EcmascriptEngine::Pimpl' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 80 Error C2039 'invoke': is not a member of 'std::unique_ptr<reactjuce::EcmascriptEngine::Pimpl,std::default_delete<reactjuce::EcmascriptEngine::Pimpl>>' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 80 Error C2027 use of undefined type 'reactjuce::EcmascriptEngine::Pimpl' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 85 Error C2232 '->std::unique_ptr<reactjuce::EcmascriptEngine::Pimpl,std::default_delete<reactjuce::EcmascriptEngine::Pimpl>>::reset': left operand has 'class' type, use '.' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 85 Error C2027 use of undefined type 'reactjuce::EcmascriptEngine::Pimpl' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 91 Error C2039 'debuggerAttach': is not a member of 'std::unique_ptr<reactjuce::EcmascriptEngine::Pimpl,std::default_delete<reactjuce::EcmascriptEngine::Pimpl>>' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 91 Error C2027 use of undefined type 'reactjuce::EcmascriptEngine::Pimpl' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 96 Error C2039 'debuggerDetach': is not a member of 'std::unique_ptr<reactjuce::EcmascriptEngine::Pimpl,std::default_delete<reactjuce::EcmascriptEngine::Pimpl>>' (compiling source file ..\..\JuceLibraryCode\include_react_juce.cpp) neutron_SharedCode [my_path_to_react_juce]\react_juce\core\EcmascriptEngine.cpp 96 Platform: Windows 11 64-bit Compiler: MSVC IDE: VS2022 JUCE: 6.1.6

solved that by adding REACTJUCE_USE_HERMES=1

@kylewatkins1202
Copy link

kylewatkins1202 commented Dec 3, 2022

REACTJUCE_USE_HERMES=1

Where did you add this too?

@mepc36
Copy link

mepc36 commented Feb 2, 2023

REACTJUCE_USE_HERMES=1

Where did you add this too?

Screenshot 2023-02-02 at 3 45 56 PM
Screenshot 2023-02-02 at 3 46 00 PM

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

4 participants