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

What is Framer? Join the Community
Return to index
James Elson
Posted May 13 - Read on Facebook

I'm trying to import a module into my first Framer project and it doesn't seem to get picked up (no sign of it in framer.modules.js). I notice in Frame Studio a brief "ModuleBuildError;" message but nothing else to help me track down the problem. I tried commenting out everything in the module, removing the module file temporarily - always the same problem. Any ideas?

12 Comments

Koen Bok

Can you share your project with me at [email protected] so I can inspect?

James Elson

Hmm, not really. Internal unreleased stuff.

Koen Bok

Maybe just the broken module?

James Elson

I was trying TextLayer from here. Any idea if this is "current"? https://github.com/awt2542/textLayer-for-Framer

Chris Camargo

Andreas Wahlström should be able to tell you if it's current.

James Elson

Definitely something odd with my project. I start a new one and "require" the module it works fine. I can them import the same Sketch file, and then cut and past my code from app.coffee and it works. So I guess something messed up in another file.

Chris Camargo

Have you updated Framer library in your existing project?
File > Update Framer Library

James Elson

Yes. Is there any output from whatever is generating the ModuleBuildError message?

James Elson

I switched to a new project and just transferred my code. Modules are now compiling despite a brief "ModuleBuildError" still flashing up. Is the output from module compilation sent anywhere?

Andreas Wahlström

Hm. Seems to work here. Is it possible to share the project where this is happening?

James Elson

Here's a cut down minimalist project that wasn't working in Framer Studio, and isn't working on the shared version. What's interesting is that if it's downloaded, it works fine. And in fact if I move it to a different folder on my Mac's drive it works, but if I duplicate it in the same folder, the duplicate doesn't work. I guess there's some problem with a watcher not noticing the file has changed. http://share.framerjs.com/rvaban591zjp/

James Elson

Worked out what's going on. A few levels up the folder hierarchy is a folder with an apostrophe in the name. Renaming that folder to remove the apostrophe has got module compilation working again. Phew!

Read the entire post on Facebook