Comments (10)
You can actually work around this issue by saying that it’s a member of nativeDependencies
in the package.json. It should let you require files not in scope.
from titaniumifier.
The build process now complete successfully with this directive in package.json
"nativeDependencies": {
"alloy/animation": "*"
}
but.. when I try to use this module inside a test application, this one crash with this error:
[ERROR] : Script Error Couldn't find module: alloy/animation for architecture: x86_64
from titaniumifier.
Super strange. That's not a titaniumifier issue anymore. What's that module? Are you sure it's there?
from titaniumifier.
I've to package a module that use Builtin Titanium Animation and I require it as per the docs! How can I solve? Thank you!
from titaniumifier.
Looks like it's one of those pieces of the std alloy library that gets loaded only if it is found to be required, and looks like alloy doesn't check modules for such require
calls.
Could you try to add require('alloy/animation')
somewhere in the app and see if it works?
from titaniumifier.
In index.js (where I'm trying my titaniumified-module) I tryied:
var animator = require("alloy/animation");
Ti.API.info(animator.HORIZONTAL);
and into console i see "horizontal" as expected.
from titaniumifier.
And does loading the module works now?
from titaniumifier.
No, I'll explain in details what I have.
Into index.js of the module that I have to tianiumify there is:
module.exports.Animation = require("alloy/animation");
When I titaniumify it and load into the test application the error
[ERROR] : Script Error Couldn't find module: alloy/animation for architecture: x86_64
occurs.
If I try to normally require the alloy/animation
into index.js of application there's no problem.
from titaniumifier.
Are both a normal, working require and the module on the same app?
What I'm guessing is that if you don't require it in the app (outside modules) the module is not injected in the 'compiled' Resources dir.
from titaniumifier.
Exactly now it works! Thank you!
from titaniumifier.
Related Issues (20)
- Zipfile should have lower case names HOT 1
- option to minify output HOT 8
- Strip “use strict” from code (3.5.0.GA) HOT 9
- Zip module issue HOT 7
- NPM unable to install or build HOT 3
- The generated package.json has a "main" script that doesn't exist HOT 8
- Support for platform dependent files HOT 1
- Using of external modules HOT 8
- Refactor transforms HOT 1
- linking to submodules HOT 6
- Trying to titaniumifier AWS node sdk HOT 2
- Error building module throw e; ^ HOT 6
- nativeDependences if dependent module has different version for each platform HOT 10
- I cannot install it because of errors HOT 21
- Parse HOT 5
- Problem trying to titaniumifier sendemail HOT 1
- Uncaught SyntaxError HOT 1
- Support for SDK 8.x? HOT 5
- Support for newer node versions HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from titaniumifier.