Interact.js: Cannot find module './src/utils/window'

Created on 23 Jan 2018  Â·  12Comments  Â·  Source: taye/interact.js

Most helpful comment

Why do we have to remove the dist folder ? I mean I install interact via yarn, I don't want to manually remove the dist folder. Is there an other workaround ?

All 12 comments

Hi , remove folder DIST and all will work perfect ;)

On Feb 4, 2018, at 23:05, Ismael Rodriguez notifications@github.com wrote:

Hello,

I am making use of interactjs through the angularjs module called angular-bootstrap-calendar.

For my compilation constructions I use GULP and I get the following problem when the browserify plugin goes into action in order to build the package of external dependencies:

Error: Can not find module './src/utils/window' from 'E: \ xxx \ xx \ node_modules \ interactjs \ dist'
at E: \ xxx \ xx \ node_modules \ browser-resolve \ node_modules \ resolve \ lib \ async.js: 55: 21
at load (E: \ xxx \ xx \ node_modules \ browser-resolve \ node_modules \ resolve \ lib \ async.js: 69: 43)
at onex (E: \ xxx \ xx \ node_modules \ browser-resolve \ node_modules \ resolve \ lib \ async.js: 92: 31)
at E: \ xxx \ xx \ node_modules \ browser-resolve \ node_modules \ resolve \ lib \ async.js: 22: 47
at FSReqWrap.oncomplete (fs.js: 152: 21)

I can not find the solution to the problem because I am not clear at what point I am doing something wrong. Maybe it's browserify the cause?

—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub https://github.com/taye/interact.js/issues/593#issuecomment-362939602, or mute the thread https://github.com/notifications/unsubscribe-auth/AiCJuTFW0GHjrazAXC7df9pqIL-TCfvCks5tRhurgaJpZM4RqEnT.

Why do we have to remove the dist folder ? I mean I install interact via yarn, I don't want to manually remove the dist folder. Is there an other workaround ?

Why do we have to remove the dist folder ? I mean I install interact via yarn, I don't want to manually remove the dist folder. Is there an other workaround ?

Person was asking me about how I solve the problem, I just answer him.

@c-aursu I have the same kind of issue, in an ember project, using ember-cli. The thing is that for me this workaround is not satisfactory.
I will try to investigate further, because I think in previous version it used to work out of the box.

we have the same issue with an Ember application
but it's work with the version 1.4.0.alpha-0

@wooandoo Thank you so much for the heads up. I will try it asap.
EDIT: indeed it works, thanks you @taye

import interact from 'interactjs/src/index'; will solve your problem.

This still happens to me, any updates on what I should do? I'm depending on another library that uses interactjs as a peer depe and deleting my and each of my team members dist folder makes no sense.

I'm also having this issue when installing interactjs via yarn for use in a Common JS module with Browserify bundling. Removing the "dist" folder has no effect.

Any other tips? Will this be fixed in a future release? Thanks!

same here with the require npm along with browserify

Confirm the issue when using browserify

@blimpmason @okayawright @real-artswan try the latest alpha version

npm install interactjs@next
Was this page helpful?
0 / 5 - 0 ratings

Related issues

Aetherpoint picture Aetherpoint  Â·  4Comments

sualko picture sualko  Â·  9Comments

johannes-z picture johannes-z  Â·  4Comments

freefalling picture freefalling  Â·  3Comments

Tlapi picture Tlapi  Â·  6Comments