This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Nadja Weber
Posted Jul 07 - Read on Facebook

Hi, I'm trying to include the node.js socket.io module following this link http://framerjs.com/docs/#modules.npm . However when I add the line "socket = require("npm").socket" to my framer script I get some errors, e.g. [Error] Error: Module npm can't be found
require (FramerStudioViewer.js, line 3127)
I followed the doc above so I don't understand what's going on here.

2 Comments

Eelco Lempsink

Hi Nadja, did you create the ‘npm.coffee’ file in the ‘modules’ folder? (the 2nd code snippet in the docs)

Nadja Weber

Hej Eelco, yes I did. When i copy the exact example code (with the moment module) it actually works. only when i switch to include socket.io it fails.

Read the entire post on Facebook