I have also a problem with class-property-transform.
At build time this:
...
class DetailsContainer extends React.Component{
@observable loaded = false; //<---- this causes the error
entity = {};
...
throws this error:
=> Errors prevented startup:
While building for web.browser:
imports/common/ui/organisms/BrowserEntities/containers/DetailsContainer.jsx:19:14:
/imports/common/ui/organisms/BrowserEntities/containers/DetailsContainer.jsx: Missing class
properties transform.
Note I am using typescript (out of react). Here is my installed package:
meteor-base # Packages every Meteor app needs to have
mobile-experience # Packages for a great mobile UX
mongo # The database Meteor supports right now
blaze-html-templates # Compile .html files into Meteor Blaze views
reactive-var # Reactive variable for tracker
jquery # Helpful client-side library
tracker # Meteor's client-side reactive programming library
standard-minifier-css # CSS minifier run for production mode
standard-minifier-js # JS minifier run for production mode
es5-shim # ECMAScript 5 compatibility for older browsers.
ecmascript # Enable ECMAScript2015+ syntax in app code
barbatus:typescript
accounts-base
#gadicc:ecmascript-babelrc
accounts-ui
accounts-password
random
ground:db@2.0.0-rc.3
You shouldnāt need any of the presets, so remove them from the .babelrc. Delete your node_modules directory and reinstall your node packages. This solved the problem for me.
Thx @nbrady@reoh, but sorry, it does not change anything. Is there something wrong in my dev dependencies? I donāt really know what I am doing with babel. I need to use arrow function, class props and decorator. Does the āstage thingā is necessary?
Thatās right, babel-preset-meteor comes from meteor-babel which is an Npm.depends-style dependency of the babel-compiler package, so you donāt need to worry about installing babel-preset-meteor or putting it in your .babelrc file.
Also you might as well meteor update --release 1.3.3-rc.0 now, just in case that helps.
@benjamn How can we easily track when the rcās are available? Iām using 1.3.3-beta.1 until I saw your post here. It would be cool if there were some setting, especially when running meteor in beta that would tell us that the rc is available. (And in the rc when the actual release is available)
At the moment, https://github.com/meteor/meteor/releases is your best bet, though I would make sure the release is at least an hour old before you try updating, since it shows up in that list before Iāve finished publishing meteor-tool.
Would this update work on Windows? I just tried it now and itās just taking a long while to ādownloadā and ends up with this
D:\p\meteor-boilerplate>meteor update --release 1.3.3-rc.0
=> Errors while initializing project:
While loading package npm-bcrypt@0.8.5:
error: Command failed: gyp
npm ERR! Windows_NT 10.0.14352
npm ERR! argv
"C:\\Users\\Archimedes\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.3.3-rc.0\\mt-os.windows.x86_32\\dev_bundle\\bi
n\\\\node.exe"
"C:\\Users\\Archimedes\\AppData\\Local\\.meteor\\packages\\meteor-tool\\1.3.3-rc.0\\mt-os.windows.x86_32\\dev_bundle\\li
b\\node_modules\\npm\\bin\\npm-cli.js"
"rebuild"
npm ERR! node v0.10.45
npm ERR! npm v2.15.1
npm ERR! code ELIFECYCLE
npm ERR! bcrypt@0.8.5 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the bcrypt@0.8.5 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the bcrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs bcrypt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls bcrypt
npm ERR! There is likely additional logging output above.
I havenāt tried the beta nor rc, but I updating to the 2h new 1.3.3 release from 1.3.2.4.
I expected the meteor node and meteor npm version to be updated to v0.10.45 and 2.15.1 as it says in the History.md, but they stayed on v0.10.43 and 2.14.22.