0

Hi I'm following a few different reactjs tutorials.

eg http://tomchentw.github.io/react-google-maps/

so how does one avoid

SyntaxError: modules are not implemented yet    

import React from "react/addons";

I assume I need to preload a shim or something (compile from es6 to legacy js?). Or is there another method for using import (outside of es6)?

1 Answer 1

4

Try using Babel in some fashion to transpile or process your source. It looks like the project you referenced is using babel-loader via webpack.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.