Skip to content

error when building - Cannot find module 'react/addons' #7

@fayzaan

Description

@fayzaan

Hi,

I am using react-templatify for our .rt files, and I am trying to upgrade our react version to 15.0.1. But when I try to build/watch, I get errors pointing to the path of our template files that 'react/addons' module cannot be found..

If I look at the components importing the template files, we are only requiring 'react', not react/addons.

As of react 15, react/addons is no longer supported, it was deprecated in version 14, as of 15 its completely removed.

the command I use is: "watch": "./node_modules/.bin/watchify -t react-templatify . -o js/bundle.js -v",

is there a way to get react-templatify to not add react/addons as a required module, and just to require 'react'? or am I doing something wrong??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions