NathanWalker / ShoutOutPlay

The mobile app that allows you to create and record personal dedications using your favorite music playlists for corporate events, parties, weddings and get togethers.
https://shoutoutplay.com
30 stars 7 forks source link

Webpack bundling errors #15

Closed NathanWalker closed 8 years ago

NathanWalker commented 8 years ago

When using: WEBPACK_OPTS="--display-error-details" tns build ios --bundle

Results in these errors:

ERROR in ../~/nativescript-telerik-ui-pro/listview/angular/listview-directives.js Module not found: Error: Cannot resolve directory './..' in ./node_modules/nativescript-telerik-ui-pro/listview/angular resolve directory ./.. in ./node_modules/nativescript-telerik-ui-pro/listview/angular directory default file index resolve file index in ./node_modules/nativescript-telerik-ui-pro/listview ./node_modules/nativescript-telerik-ui-pro/listview/index doesn't exist ./node_modules/nativescript-telerik-ui-pro/listview/index.js doesn't exist ./node_modules/nativescript-telerik-ui-pro/listview/index.ios.js doesn't exist use listview.js from package.json resolve 'file' or 'directory' listview.js in ./node_modules/nativescript-telerik-ui-pro/listview resolve directory ./node_modules/nativescript-telerik-ui-pro/listview/listview.js doesn't exist (directory default file) ./node_modules/nativescript-telerik-ui-pro/listview/listview.js/package.json doesn't exist (directory description file) resolve file ./node_modules/nativescript-telerik-ui-pro/listview/listview.js doesn't exist ./node_modules/nativescript-telerik-ui-pro/listview/listview.js.js doesn't exist ./node_modules/nativescript-telerik-ui-pro/listview/listview.js.ios.js doesn't exist [./node_modules/nativescript-telerik-ui-pro/listview/index] [./node_modules/nativescript-telerik-ui-pro/listview/index.js] [./node_modules/nativescript-telerik-ui-pro/listview/index.ios.js] [./node_modules/nativescript-telerik-ui-pro/listview/listview.js] [./node_modules/nativescript-telerik-ui-pro/listview/listview.js.js] [./node_modules/nativescript-telerik-ui-pro/listview/listview.js.ios.js] @ ../~/nativescript-telerik-ui-pro/listview/angular/listview-directives.js 4:9-25

Undefined symbols for architecture i386: "_SPTAuthPlaylistModifyPrivateScope", referenced from: -exported_symbol[s_list] command line option "_SPTAuthPlaylistModifyPublicScope", referenced from: -exported_symbol[s_list] command line option "_SPTAuthPlaylistReadPrivateScope", referenced from: -exported_symbol[s_list] command line option "_SPTAuthStreamingScope", referenced from: -exported_symbol[s_list] command line option "_SPTAuthUserLibraryModifyScope", referenced from: -exported_symbol[s_list] command line option "_SPTAuthUserLibraryReadScope", referenced from: -exported_symbol[s_list] command line option "_SPTAuthUserReadEmailScope", referenced from: -exported_symbol[s_list] command line option "_SPTAuthUserReadPrivateScope", referenced from: -exported_symbol[s_list] command line option ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)

NathanaelA commented 8 years ago

So we don't loose this from slack;

Two things you have to fix...

  1. Open up node_modules/nativescript-spotify/platforms/ios/Spotify.framework/Headers -> Edit SPTAuth.h, and comment out all the FOUNDATION_EXPORT statements before the class SPT_SESSION (Basically about 10 of them at the top of the file) This fixes the second building issue you had. (edited)
  2. Switch to node_modules/nativescript-telerik-ui-pro/listview and rename listview.ios.js to listview.js That fixes the first build issue you had.

With both those fixes in place; bundle building works.

NathanaelA commented 8 years ago

Bundled builds however produce this error on startup: Jul 7 15:32:29 Macs-Mac ShoutOutPlay[5044]: CONSOLE WARN file:///app/bundle.js:107081:15: The TypeScript constructor "TKListViewDataSourceImpl" will not be executed. Jul 7 15:32:29 Macs-Mac ShoutOutPlay[5044]: CONSOLE WARN file:///app/bundle.js:107222:15: The TypeScript constructor "ExtendedListViewCell" will not be executed. Jul 7 15:32:29 Macs-Mac ShoutOutPlay[5044]: 1 0x96082c -[TNSRuntime executeModule:] Jul 7 15:32:29 Macs-Mac ShoutOutPlay[5044]: 2 0x6b75b main Jul 7 15:32:29 Macs-Mac ShoutOutPlay[5044]: 3 0x5266a25 start Jul 7 15:32:29 Macs-Mac ShoutOutPlay[5044]: file:///app/bundle.js:109937:26: JS ERROR TypeError: Attempted to assign to readonly property. Jul 7 15:32:29 Macs-Mac com.apple.CoreSimulator.SimDevice.62460DF3-C77B-4585-B0FD-AC5A103E75E5.launchd_sim4616: Service exited due to signal: Segmentation fault: 11

Line 109937 is a standard __extend function; so this occurs while something is being extended...

NathanWalker commented 8 years ago

With the tremendous effort of @NathanaelA and I's collaboration, we are now able to Webpack bundle this app!! Hooray!