You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After installing sails-hook-babel, I cannot launch sails app. I receive error ReferenceError: regeneratorRuntime is not defined on each sails helper function.
I created a config/babel.js file with polyfill: true and teh app launches, but then it gives me a new error of cannot read success of undefined when trying to return a value in exits.success in an actions2 action.
Using:
Sails 1.0
Node 10
Error after installing sails-hook-babel and trying to launch sails app:
--
error: Attempted to require('/Users/charlesw/Code/goodnature-api-sails/api/helpers/get-matching-contacts.js'), but an error occurred:
ReferenceError: regeneratorRuntime is not defined
at /Users/charlesw/Code/goodnature-api-sails/api/helpers/get-matching-contacts.js:29:5
at Object. (/Users/charlesw/Code/goodnature-api-sails/api/helpers/get-matching-contacts.js:29:5)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Module._compile (/Users/charlesw/Code/goodnature-api-sails/node_modules/pirates/lib/index.js:99:24)
at Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Object.newLoader [as .js] (/Users/charlesw/Code/goodnature-api-sails/node_modules/pirates/lib/index.js:104:7)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at /Users/charlesw/Code/goodnature-api-sails/node_modules/include-all/lib/help-include-all-sync.js:293:33
at Array.forEach ()
at _recursivelyIncludeAll (/Users/charlesw/Code/goodnature-api-sails/node_modules/include-all/lib/help-include-all-sync.js:178:11)
at includeAll (/Users/charlesw/Code/goodnature-api-sails/node_modules/include-all/lib/help-include-all-sync.js:317:5)
at helpBuildDictionary (/Users/charlesw/Code/goodnature-api-sails/node_modules/include-all/lib/help-build-dictionary.js:46:13)
at Function.module.exports.optional (/Users/charlesw/Code/goodnature-api-sails/node_modules/include-all/index.js:67:10)
at loadHelpers (/Users/charlesw/Code/goodnature-api-sails/node_modules/sails/lib/hooks/helpers/private/load-helpers.js:24:14)
at Hook.initialize (/Users/charlesw/Code/goodnature-api-sails/node_modules/sails/lib/hooks/helpers/index.js:285:7)
at Hook.wrapper [as initialize] (/Users/charlesw/Code/goodnature-api-sails/node_modules/@sailshq/lodash/lib/index.js:3282:19)
at /Users/charlesw/Code/goodnature-api-sails/node_modules/sails/lib/hooks/index.js:122:20
at /Users/charlesw/Code/goodnature-api-sails/node_modules/async/dist/async.js:421:16
The text was updated successfully, but these errors were encountered:
After installing sails-hook-babel, I cannot launch sails app. I receive error
ReferenceError: regeneratorRuntime is not defined
on each sails helper function.I created a config/babel.js file with
polyfill: true
and teh app launches, but then it gives me a new error ofcannot read success of undefined
when trying to return a value inexits.success
in an actions2 action.Using:
Sails 1.0
Node 10
Error after installing sails-hook-babel and trying to launch sails app:
--
error: Attempted to
require('/Users/charlesw/Code/goodnature-api-sails/api/helpers/get-matching-contacts.js')
, but an error occurred:ReferenceError: regeneratorRuntime is not defined
at /Users/charlesw/Code/goodnature-api-sails/api/helpers/get-matching-contacts.js:29:5
at Object. (/Users/charlesw/Code/goodnature-api-sails/api/helpers/get-matching-contacts.js:29:5)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Module._compile (/Users/charlesw/Code/goodnature-api-sails/node_modules/pirates/lib/index.js:99:24)
at Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Object.newLoader [as .js] (/Users/charlesw/Code/goodnature-api-sails/node_modules/pirates/lib/index.js:104:7)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at /Users/charlesw/Code/goodnature-api-sails/node_modules/include-all/lib/help-include-all-sync.js:293:33
at Array.forEach ()
at _recursivelyIncludeAll (/Users/charlesw/Code/goodnature-api-sails/node_modules/include-all/lib/help-include-all-sync.js:178:11)
at includeAll (/Users/charlesw/Code/goodnature-api-sails/node_modules/include-all/lib/help-include-all-sync.js:317:5)
at helpBuildDictionary (/Users/charlesw/Code/goodnature-api-sails/node_modules/include-all/lib/help-build-dictionary.js:46:13)
at Function.module.exports.optional (/Users/charlesw/Code/goodnature-api-sails/node_modules/include-all/index.js:67:10)
at loadHelpers (/Users/charlesw/Code/goodnature-api-sails/node_modules/sails/lib/hooks/helpers/private/load-helpers.js:24:14)
at Hook.initialize (/Users/charlesw/Code/goodnature-api-sails/node_modules/sails/lib/hooks/helpers/index.js:285:7)
at Hook.wrapper [as initialize] (/Users/charlesw/Code/goodnature-api-sails/node_modules/@sailshq/lodash/lib/index.js:3282:19)
at /Users/charlesw/Code/goodnature-api-sails/node_modules/sails/lib/hooks/index.js:122:20
at /Users/charlesw/Code/goodnature-api-sails/node_modules/async/dist/async.js:421:16
The text was updated successfully, but these errors were encountered: