later icon indicating copy to clipboard operation
later copied to clipboard

v1.2.0 Cannot find module './later'

Open ghost opened this issue 9 years ago • 8 comments

I am getting this issue when trying to require later in react js like so: var later = require('later')

ghost avatar Mar 29 '16 18:03 ghost

Are you using webpack?

bunkat avatar Apr 01 '16 23:04 bunkat

No, I'm using Meteor 1.3 to watch the code

ghost avatar Apr 02 '16 01:04 ghost

I don't use Meteor so I'm not sure what the problem could be.

bunkat avatar Apr 02 '16 06:04 bunkat

@rravikot @bunkat not sure if it's helpful, but when I used Later with React Native 25, I found that I had to edit this in index.js to successfully import the module

require(process.env['LATER_COV'] ? "./later-cov" : "./later");

to

require("./later");

Unfortunately I'm not familiar enough with the RN packager to understand why this would make a difference...

wsun avatar May 10 '16 05:05 wsun

Same problem here: Meteor 1.3. Added later to project with npm install --save later. Then trying to

import later from 'later';

gives: install.js:78 Uncaught Error: Cannot find module './later'

jschlieber avatar May 10 '16 10:05 jschlieber

I'm also experiencing the same problem with Meteor v1.3.2.4. Added later to project using this command

meteor npm install --save later

code:

import later from 'later';

error message: install.js:78 Uncaught Error: Cannot find module './later'

redmoses avatar May 20 '16 21:05 redmoses

Another npm package has solved this issue: https://www.npmjs.com/package/meteor-later

It's a clone of later, but works for meteor's import keyword.

JakeHartnell avatar Jun 01 '16 19:06 JakeHartnell

Manually add "later" : "1.2.0" to your Meteor package.json then npm install.

ghost avatar Oct 21 '16 23:10 ghost