[Solved] TinyTest not defined

After updating to Meteor 1.8.2 I get an error on startup. Thanks in advance for any help.

=> Started proxy.                             
=> Started MongoDB.                           
W20191208-10:54:46.309(-7)? (STDERR) /Users/timwolters 1/.meteor/packages/meteor-tool/.1.8.2.1v381sd++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/fibers.js:90
W20191208-10:54:46.439(-7)? (STDERR) 					return fn.apply(this, arguments);
W20191208-10:54:46.439(-7)? (STDERR) 					          ^
W20191208-10:54:46.439(-7)? (STDERR) 
W20191208-10:54:46.439(-7)? (STDERR) ReferenceError: Tinytest is not defined
W20191208-10:54:46.439(-7)? (STDERR)     at packages/modules-runtime.js:794:1
W20191208-10:54:46.439(-7)? (STDERR)     at packages/modules-runtime.js:802:4
W20191208-10:54:46.440(-7)? (STDERR)     at packages/modules-runtime.js:806:4
W20191208-10:54:46.440(-7)? (STDERR)     at packages/modules-runtime.js:814:3
W20191208-10:54:46.440(-7)? (STDERR)     at /Users/timwolters 1/workspace/meteorapps/dlist/.meteor/local/build/programs/server/boot.js:398:38
W20191208-10:54:46.440(-7)? (STDERR)     at Array.forEach (<anonymous>)
W20191208-10:54:46.440(-7)? (STDERR)     at /Users/timwolters 1/workspace/meteorapps/dlist/.meteor/local/build/programs/server/boot.js:226:21
W20191208-10:54:46.440(-7)? (STDERR)     at /Users/timwolters 1/workspace/meteorapps/dlist/.meteor/local/build/programs/server/boot.js:461:7
W20191208-10:54:46.440(-7)? (STDERR)     at Function.run (/Users/timwolters 1/workspace/meteorapps/dlist/.meteor/local/build/programs/server/profile.js:280:14)
W20191208-10:54:46.441(-7)? (STDERR)     at /Users/timwolters 1/workspace/meteorapps/dlist/.meteor/local/build/programs/server/boot.js:460:13
=> Exited with code: 1

Can someone please help? I tried upgrading a super simple app to 1.8.2. Same result. I then tried to just create a blank project and same result again. I am dead in the water. I now can’t even create a new app and have it run!!

MBP-Retina-2G-00692:meteorapps twolters$ meteor create sample_182
Created a new Meteor app in 'sample_182'.     

To run your new app:                          
  cd sample_182                               
  meteor                                      
                                              
If you are new to Meteor, try some of the learning resources here:
  https://www.meteor.com/tutorials            
                                              
To start with a different app template, try one of the following:

  meteor create --bare       # to create an empty app
  meteor create --minimal    # to create an app with as few Meteor packages as possible
  meteor create --full       # to create a more complete scaffolded app
  meteor create --react      # to create a basic React-based app
  meteor create --typescript # to create an app using TypeScript and React
                                              
MBP-Retina-2G-00692:meteorapps twolters$ cd sample_182
MBP-Retina-2G-00692:sample_182 twolters$ ls
client			node_modules		package-lock.json	package.json		server			tests
MBP-Retina-2G-00692:sample_182 twolters$ meteor
[[[[[ ~/workspace/meteorapps/sample_182 ]]]]] 

=> Started proxy.                             
W20191209-09:48:03.991(-7)? (STDERR) /Users/timwolters 1/.meteor/packages/meteor-tool/.1.8.2.1v381sd++os.osx.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/fibers.js:90
W20191209-09:48:04.071(-7)? (STDERR) 					return fn.apply(this, arguments);
W20191209-09:48:04.071(-7)? (STDERR) 					          ^
W20191209-09:48:04.071(-7)? (STDERR) 
W20191209-09:48:04.071(-7)? (STDERR) ReferenceError: Tinytest is not defined
W20191209-09:48:04.071(-7)? (STDERR)     at packages/modules-runtime.js:794:1
W20191209-09:48:04.071(-7)? (STDERR)     at packages/modules-runtime.js:802:4
W20191209-09:48:04.072(-7)? (STDERR)     at packages/modules-runtime.js:806:4
W20191209-09:48:04.072(-7)? (STDERR)     at packages/modules-runtime.js:814:3
W20191209-09:48:04.072(-7)? (STDERR)     at /Users/timwolters 1/workspace/meteorapps/sample_182/.meteor/local/build/programs/server/boot.js:398:38
W20191209-09:48:04.072(-7)? (STDERR)     at Array.forEach (<anonymous>)
W20191209-09:48:04.072(-7)? (STDERR)     at /Users/timwolters 1/workspace/meteorapps/sample_182/.meteor/local/build/programs/server/boot.js:226:21
W20191209-09:48:04.072(-7)? (STDERR)     at /Users/timwolters 1/workspace/meteorapps/sample_182/.meteor/local/build/programs/server/boot.js:461:7
W20191209-09:48:04.072(-7)? (STDERR)     at Function.run (/Users/timwolters 1/workspace/meteorapps/sample_182/.meteor/local/build/programs/server/profile.js:280:14)
W20191209-09:48:04.073(-7)? (STDERR)     at /Users/timwolters 1/workspace/meteorapps/sample_182/.meteor/local/build/programs/server/boot.js:460:13
=> Exited with code: 1

I tried the same and had no issues:

~/scratch
❯ meteor create sample_182
Created a new Meteor app in 'sample_182'.

To run your new app:
  cd sample_182
  meteor

If you are new to Meteor, try some of the learning resources here:
  https://www.meteor.com/tutorials

To start with a different app template, try one of the following:

  meteor create --bare       # to create an empty app
  meteor create --minimal    # to create an app with as few Meteor packages as possible
  meteor create --full       # to create a more complete scaffolded app
  meteor create --react      # to create a basic React-based app
  meteor create --typescript # to create an app using TypeScript and React


~/scratch took 1m57s
❯ cd sample_182/

~/scratch/sample_182 via ⬢ v12.13.1
❯ meteor
[[[[[ ~/scratch/sample_182 ]]]]]

=> Started proxy.
=> Started MongoDB.
=> Started your app.

=> App running at: http://localhost:3000/

Looks like your meteor install is busted. Try deleting ~/.meteor and installing again

1 Like

Thanks so much! I reinstalled and the create new meteor app now works. My larger app was still failing on boot, in another place. I noticed on the Meteor 1.8.2 docs to use NPM to update Babel Runtime and Meteor Node Stubs as follows

meteor npm install @babel/runtime@latest
meteor npm install meteor-node-stubs@next

And now everything working again. Phew! thanks much for jumping in!

1 Like