Using Redux in Meteor.js

I am new to Meteor.js and working on a project in which I also use Redux, so I added the kyutaekang: redux package. The problem is that I do not know how to import Redux to use it. I tried:

import { createStore } from 'redux';,

but when i run the application i get

[Error: Unable to fetch "redux". Only file URLs of the form file:/// allowed running in Node.].

+4
source share
1 answer

Meteor does not yet support ES2015 importout of the box (may be available in version 1.3.0). Therefore, you will need a modern module module, which is also described in the package Readme file:

This assumes that you are using the npm package manager with a module such as Webpack or Browserify to use CommonJS modules.

, .

Edit

.

, Adam repo ( , ) - , .

+4

Source: https://habr.com/ru/post/1619094/


All Articles