development
.
./reaction pull
as you need to get changes into external packages if you have them
Server tests ran successfully undefined
meteor test --full-app --driver-package=sanjo:jasmine
“Running tests…”
and then Server tests ran successfully undefined
ClientServerReporter.coffee:21 ClientServerReporter.constructor: Missing reporter to run tests. Use MochaRunner.setReporter(reporter) to set one.
.meteor
directory. There was a ton of stuff in there that was no longer needed.
sanjo:jasmine
velocity:console-reporter
velocity:html-reporter
velocity:console-reporter@0.2.1
velocity:html-reporter@0.10.0
sanjo:jasmine@1.0.0
rm -rf
’ed my whole meteor install, and reinstalled.. 17+GB, took about 30 minutes to delete on the SSD
MochaRunner.runServerTests: Starting server side tests with run id sAXpujiEPtAB7xAcL
MochaRunner.runServerTests: failures: 0
react
and react-dom
for reaction-ui
?
tests
directory is ignored. Cuz that makes sense
Uncaught Error: Cannot find module 'util'
reactioncommerce_reaction-collections.js:31 Uncaught TypeError: Cannot read property 'bunyan' of undefined
reactioncommerce_reaction-email-templates.js:10 Uncaught TypeError: Cannot read property 'ReactionSubscriptions' of undefined
reactioncommerce_core.js:35 Uncaught TypeError: Cannot read property 'bunyan' of undefined
reactioncommerce_reaction-catalog.js:24 Uncaught TypeError: Cannot read property 'ReactionImport' of undefined
tmeasday_check-npm-versions.js:65 Uncaught Error: Cannot find module 'react/package.json'
reactioncommerce_reaction-ui.js:29 Uncaught TypeError: Cannot read property 'ReactionCore' of undefined
reactioncommerce_reaction-layout.js:32 Uncaught TypeError: Cannot read property 'ReactionImport' of undefined
reactioncommerce_reaction-accounts.js:33 Uncaught TypeError: Cannot read property 'ReactionImport' of undefined
reactioncommerce_reaction-router.js:22 Uncaught TypeError: Cannot read property 'ReactionSubscriptions' of undefined
meteor.js:913 Error logging in with token: Error: You've been logged out by the server. Please log in again. [403]
reactioncommerce_reaction-i18n.js:29 Uncaught TypeError: Cannot read property 'ReactionSubscriptions' of undefined
reactioncommerce_reaction-product-variant.js:31 Uncaught TypeError: Cannot read property 'ReactionRouter' of undefined
reactioncommerce_reaction-dashboard.js:32 Uncaught TypeError: Cannot read property 'ReactionImport' of undefined
reactioncommerce_reaction-orders.js:32 Uncaught TypeError: Cannot read property 'ReactionImport' of undefined
reactioncommerce_reaction-analytics.js:28 Uncaught TypeError: Cannot read property 'ReactionRouter' of undefined
reactioncommerce_reaction-inventory.js:27 Uncaught TypeError: Cannot read property 'ReactionImport' of undefined
reactioncommerce_reaction-checkout.js:32 Uncaught TypeError: Cannot read property 'ReactionImport' of undefined
reactioncommerce_reaction-shipping.js:30 Uncaught TypeError: Cannot read property 'ReactionImport' of undefined
reactioncommerce_reaction-social.js:29 Uncaught TypeError: Cannot read property 'currentProduct' of undefined
reactioncommerce_reaction-ui-navbar.js:30 Uncaught TypeError: Cannot read property 'ReactionImport' of undefined
reactioncommerce_reaction-ui-tagnav.js:31 Uncaught TypeError: Cannot read property 'TextField' of undefined
reactioncommerce_reaction-paymentmethod.js:31 Uncaught TypeError: Cannot read property 'ReactionImport' of undefined
reactioncommerce_reaction-stripe.js:32 Uncaught TypeError: Cannot read property 'ReactionImport' of undefined
reactioncommerce_reaction-auth-net.js:31 Uncaught TypeError: Cannot read property 'ReactionImport' of undefined
reactioncommerce_reaction-braintree.js:31 Uncaught TypeError: Cannot read property 'ReactionImport' of undefined
reactioncommerce_reaction-sample-data.js:8 Uncaught TypeError: Cannot read property 'ReactionImport' of undefined
global-imports.js:8 Uncaught TypeError: Cannot read property 'ReactionImport' of undefined
app.js:1 Uncaught ReferenceError: meteorInstall is not defined
meteorhacks_fast-render.js:232 Uncaught Error: seems like cookie tossing is happening. visit here: http://git.io/q4IRHQ
npm install
(or use reaction pull
I added it there as well) ?
util
is installed by meteor-node-stubs
from the app package.json
npm install
I so another error. Maybe this is because I' working in fork and something was merged with errors...check-npm-versions.js:21 Uncaught Error: Cannot find module 'bunyan-format/package.json'require @ modules-runtime.js?hash=939c79d…:95compatibleVersionIsInstalled @ check-npm-versions.js:10(anonymous function) @ check-npm-versions.js:29_.each._.forEach @ underscore.js?hash=8de51f9…:147checkNpmVersions @ check-npm-versions.js:28meteorInstall.node_modules.meteor.reactioncommerce:reaction-logger.client.main.js @ main.js:3fileEvaluate @ modules-runtime.js?hash=939c79d…:158require @ modules-runtime.js?hash=939c79d…:92(anonymous function) @ reactioncommerce_reaction-logger.js?hash=7010811…:2618(anonymous function) @ reactioncommerce_reaction-logger.js?hash=7010811…:2629
reactioncommerce_reaction-collections.js?hash=12901a7…:31Uncaught TypeError: Cannot read property 'bunyan' of undefined(anonymous function) @ reactioncommerce_reaction-collections.js?hash=12901a7…:31(anonymous function) @ reactioncommerce_reaction-collections.js?hash=12901a7…:549
reactioncommerce_reaction-email-templates.js?hash=cd84da2…:10 Uncaught TypeError: Cannot read property 'ReactionSubscriptions' of undefined(anonymous function) @ reactioncommerce_reaction-email-templates.js?hash=cd84da2…:10(anonymous function) @ reactioncommerce_reaction-email-templates.js?hash=cd84da2…:47
reactioncommerce_core.js?hash=2672883…:35Uncaught TypeError: Cannot read property 'bunyan' of undefined(anonymous function) @ reactioncommerce_core.js?hash=2672883…:35(anonymous function) @ reactioncommerce_core.js?hash=2672883…:1820
reactioncommerce_reaction-catalog.js?hash=6527cf7…:24 Uncaught TypeError: Cannot read property 'ReactionImport' of undefined(anonymous function) @ reactioncommerce_reaction-catalog.js?hash=6527cf7…:24(anonymous function) @ reactioncommerce_reaction-catalog.js?hash=6527cf7…:349
reactioncommerce_reaction-ui.js?hash=35aeb72…:29Uncaught TypeError: Cannot read property 'ReactionCore' of undefined(anonymous function) @ reactioncommerce_reaction-ui.js?hash=35aeb72…:29(anonymous function) @ reactioncommerce_reaction-ui.js?hash=35aeb72…:43353
reactioncommerce_reaction-layout.js?hash=063415e…:32 Uncaught TypeError: Cannot read property 'ReactionImport' of undefined(anonymous function) @ reactioncommerce_reaction-layout.js?hash=063415e…:32(anonymous function) @ reactioncommerce_reaction-layout.js?hash=063415e…:1398
reactioncommerce_reaction-accounts.js?hash=d74aa71…:33Uncaught TypeError: Cannot read property 'ReactionImport' of undefined(anonymous function) @ reactioncommerce_reaction-accounts.js?hash=d74aa71…:33(anonymous function) @ reactioncommerce_reaction-accounts.js?hash=d74aa71…:4371
reactioncommerce_reaction-router.js?hash=65ec805…:22Uncaught TypeError: Cannot read property 'ReactionSubscriptions' of undefined(anonymous function) @ reactioncommerce_reaction-router.js?hash=65ec805…:22(anonymous function) @ reactioncommerce_reaction-router.js?hash=65ec805…:589
reactioncommerce_reaction-i18n.js?hash=8ba3307…:29Uncaught TypeError: Cannot read property 'ReactionSubscriptions' of undefined(anonymous function) @ reactioncommerce_reaction-i18n.js?hash=8ba3307…:29(anonymous function) @ reactioncommerce_reaction-i18n.js?hash=8ba3307…:3865
reactioncommerce_reaction-product-variant.js?hash=83139bc…:31Uncaught TypeError: Cannot read property 'ReactionRouter' of undefined(anonymous function) @ reactioncommerce_reaction-product-variant.js?hash=83139bc…:31(anonymous function) @ reactioncommerce_reaction-product-variant.js?hash=83139bc…:34286
reactioncommerce_reaction-dashboard.js?hash=17f984c…:32Uncaught TypeError: Cannot read property 'ReactionImport' of undefined(anonymous function) @ reactioncommerce_reaction-dashboard.js?hash=17f984c…:32(anonymous function) @ reactioncommerce_reaction-dashboard.js?hash=17f984c…:1598
reactioncommerce_reaction-orders.js?hash=d19fe3d…:32Uncaught TypeError: Cannot read property 'ReactionImport' of undefined(anonymous function) @ reactioncommerce_reaction-orders.js?hash=d19fe3d…:32(anonymous function) @ reactioncomm
if you have a forked version, the logging directory renamed to packages/reaction-logger
instead of packages/reaction-logging
. could be a mixup there? if not though, this looks like a build error, maybe run (from project root)
find . -name bower -exec rm -rf {} \;
find . -name node_modules -exec rm -rf {} \;
to clear out any existing installed node_modules, and rerun - (one of several tricks I have had to do to reset)
reaction-logging
folder...
reaction
and it shows me:sohaam@debian:~/devel/reaction-src/reaction$ meteor
[[[[[ ~/devel/reaction-src/reaction ]]]]]
=> Started proxy.
=> Errors prevented startup:
While selecting package versions:
error: Potentially incompatible change required to top-level dependency: reactioncommerce:launchdock-connect 0.2.1, was 0.2.2.
Constraints on package "reactioncommerce:launchdock-connect":
Potentially incompatible change required to top-level dependency: reactioncommerce:reaction-paypal 1.3.0, was 1.4.0.
Constraints on package "reactioncommerce:reaction-paypal":
To allow potentially incompatible changes to top-level dependencies, you must pass --allow-incompatible-update on the command line.
=> Your application has errors. Waiting for file change.
=> Started MongoDB.
reaction pull
will bring those down into the fresh install, otherwise it’s hitting the older packages in atmosphere
practicalmeteor
packages and now I am gettingI20160412-14:03:19.321(8)? jasmine-server: 1 tests passed (1ms)
I20160412-14:03:19.709(8)? jasmine-client: 1 tests passed (3ms)
launchdock-connect
and now a fresh clone will work OOTB
reaction
, second time rm
ed .meteor
and reaction pull && bin/reset && npm install && meteor
still so the same list of errors. Pretty strange)
all starting to work after I commit some lines:
Npm.depends({
// "bunyan": "1.8.0",
// "bunyan-format": "0.2.1",
// "bunyan-loggly": "0.0.5"
});
I'm looking into that reaction-logger
and it scares me. Why so much overhead with deps? why we getting the same packages from meteor internal system Npm.depends
then, via package.json, and what happens inside client/main.js
?
bunyan
packages again from the top-level?
.meteor
directory
npm install
do you mean meteor npm install
?
meteor npm install
I don’t think it should matter since it’s using it’s own version of npm right?
const media = ReactionCore.Collections.Media.findOne({
"metadata.productId": product._id,
"metadata.priority": 0,
"metadata.toGrid": 1
}, { sort: { uploadedAt: 1 } });
return media.url({store: "thumbnail"})
/.meteor
(install dir), and I did have some weird build errors until I started from scratch.. have no real logical explanation though..
meteor npm
Npm.depents()
and package.json
together to fetch similar packages?
npm install
after the atmosphere package has been installed.
require
or import
. I look at this file and it is not clear thats going on in line 10. As I understand require
is used inside file in some statements like if
. and it not always mean we will load this file. Import
are always load file.
const bunyan = require(“bunyan”)
however… I couldn’t because you can only have one require per package… so I required on server, and imported on client.
react
dep at lop-level. Is that necessary? Why not to load it from package? I'm asking because I'm still on 0.14.8
package-name/public
? for now I only able to load from /public
packages/
I think. I can’t remember exactly the path structure but you’ll see the assets in reaction/.meteor/local/build/programs/web.browser/packages
api.addAssets
, there should just be an “assets” dir
@aaronjudd Yes, thanks. The path actually looks like this "/packages/scydev_snaxter-template/client/templates/snaxterLayout/assets/images/pasta-527286-1920-1920x1212-47.jpg".
import
, and require on clients, I’ll test more.. (but it does work now)
import
s on the server and on the client and all works fine.
anonymous
account ;-)
Is this issue known or already fixed?
Tags with attributes like data-i18n="productDetail.makeInactive"
are not translated to the correct language if they are reactively re-rendered. Instead the default text is used.
Using the i18n helper works find though: {{i18n 'productDetail.makeInactive' 'Deactivate'}}
Shops.layout
(see other’s existing as an example). That should be loaded by the package on start though, if the structure is declared in the register.js
apt-get
should be run with sudo. Once you run one thing with sudo
you sort of stuck with running everything with sudo
and that’s a dead end
rm -rf
that directory