lambus-platform / titanium-notification-banner

A lightweight ES6 based notification banner - coming with different types and positions.
MIT License
26 stars 7 forks source link

Alloy support #2

Closed ottopic closed 4 years ago

ottopic commented 4 years ago

ReferenceError: buildAlloy is not defined at /Users/user/Documents/GitHub/app/modules/iphone/ti.notificationbanner/2.0.0/hooks/ti.swiftsupport.js:26:54 at Array.forEach (<anonymous>) at /Users/user/Documents/GitHub/app/modules/iphone/ti.notificationbanner/2.0.0/hooks/ti.swiftsupport.js:25:83 at Array.forEach (<anonymous>) at iOSBuilder.pre (/Users/user/Documents/GitHub/app/modules/iphone/ti.notificationbanner/2.0.0/hooks/ti.swiftsupport.js:22:39) at /Users/user/.appcelerator/install/7.1.2/package/node_modules/titanium/lib/hook.js:223:10 at /Users/user/.appcelerator/install/7.1.2/package/node_modules/titanium/node_modules/async/dist/async.js:3880:24 at replenish (/Users/user/.appcelerator/install/7.1.2/package/node_modules/titanium/node_modules/async/dist/async.js:1011:17) at /Users/user/.appcelerator/install/7.1.2/package/node_modules/titanium/node_modules/async/dist/async.js:1016:9 at eachOfLimit (/Users/user/.appcelerator/install/7.1.2/package/node_modules/titanium/node_modules/async/dist/async.js:1041:24)

hansemannn commented 4 years ago

This is not module related. We use it in an Alloy app without issues

ottopic commented 4 years ago

@hansemannn how do you import it? It's my first Alloy app, but with other modules I have not this problem. I have /modules/iphone/ti.notificationbanner/2.0.0/ and import it with

import NotificationBanner from 'ti.notificationbanner';

inside Alloy.js. Is this true?