-
-
Notifications
You must be signed in to change notification settings - Fork 81
Description
I guess this project is abandoned, but I'll post year-2025 build errors just to show that there's still interest...
'''
'->std::unique_ptr<reactjuce::EcmascriptEngine::Pimpl,std::default_deletereactjuce::EcmascriptEngine::Pimpl>::reset': left operand has 'class' type, use '.'
'debuggerAttach': is not a member of 'std::unique_ptr<reactjuce::EcmascriptEngine::Pimpl,std::default_deletereactjuce::EcmascriptEngine::Pimpl>'
'debuggerDetach': is not a member of 'std::unique_ptr<reactjuce::EcmascriptEngine::Pimpl,std::default_deletereactjuce::EcmascriptEngine::Pimpl>'
'evaluate': is not a member of 'std::unique_ptr<reactjuce::EcmascriptEngine::Pimpl,std::default_deletereactjuce::EcmascriptEngine::Pimpl>'
'evaluateBytecode': is not a member of 'std::unique_ptr<reactjuce::EcmascriptEngine::Pimpl,std::default_deletereactjuce::EcmascriptEngine::Pimpl>'
'evaluateInline': is not a member of 'std::unique_ptr<reactjuce::EcmascriptEngine::Pimpl,std::default_deletereactjuce::EcmascriptEngine::Pimpl>'
'invoke': is not a member of 'std::unique_ptr<reactjuce::EcmascriptEngine::Pimpl,std::default_deletereactjuce::EcmascriptEngine::Pimpl>'
'registerNativeProperty': is not a member of 'std::unique_ptr<reactjuce::EcmascriptEngine::Pimpl,std::default_deletereactjuce::EcmascriptEngine::Pimpl>'
'registerNativeProperty': is not a member of 'std::unique_ptr<reactjuce::EcmascriptEngine::Pimpl,std::default_deletereactjuce::EcmascriptEngine::Pimpl>'
use of undefined type 'reactjuce::EcmascriptEngine::Pimpl'
use of undefined type 'reactjuce::EcmascriptEngine::Pimpl'
use of undefined type 'reactjuce::EcmascriptEngine::Pimpl'
use of undefined type 'reactjuce::EcmascriptEngine::Pimpl'
use of undefined type 'reactjuce::EcmascriptEngine::Pimpl'
use of undefined type 'reactjuce::EcmascriptEngine::Pimpl'
use of undefined type 'reactjuce::EcmascriptEngine::Pimpl'
use of undefined type 'reactjuce::EcmascriptEngine::Pimpl'
use of undefined type 'reactjuce::EcmascriptEngine::Pimpl'
'''
I'm using JUCE 8.0.6 and Visual Studio 2022. I installed Node.js v22.14.0 using npm install for Windows. I added the juce-react module in Projucer, but I didn't add any code to the project. But I also got similar errors when I tried making a source1.cpp with the following code:
#include <juce_Component.h>
class MainComponent : public Component
{
public:
//==============================================================================
MainComponent()
{
// First thing we have to do is load our javascript bundle from the build
// directory so that we can evaluate it within our appRot.
// TODO: Replace this with the appropriate path to your javascript bundle!
File bundle = File("D:\\visual studio projects\\JUCE JavaScript\\JUCE JavaScript\\Source\\jsui\\build\\js\\main.js");
addAndMakeVisible(appRoot);
appRoot.evaluate(bundle);
setSize(400, 300);
}
~MainComponent();
//==============================================================================
void paint(Graphics&) override;
void resized() override
{
appRoot.setBounds(getLocalBounds());
}
private:
//==============================================================================
reactjuce::ReactApplicationRoot appRoot;
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(MainComponent)
};
After having made the default main.js using the instructions in the getting started docs.