JoshMarler / react-juce

Write cross-platform native apps with React.js and JUCE
https://docs.react-juce.dev
MIT License
763 stars 79 forks source link

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

Open the-jasoney opened 2 years ago

the-jasoney commented 2 years ago

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 commented 1 year ago

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 commented 1 year ago

REACTJUCE_USE_HERMES=1

Where did you add this too?

mepc36 commented 1 year ago

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