# Stencil Bundle fails with error Cannot read properties of undefined (reading 'has')

## What happened

Issue bigcommerce/cornerstone#2428 (closed, 10 comments): Attempting to run stencil bundle after ok --- Template Parsing Finished The command generates a list of errors: `isModuleDeclaration` has been deprecated, please migrate to `isImportOrExportDeclaration` at isModuleDeclaration ([HOME]/... Business Dropbox/Marketing/[OFFICIAL ARCHIVE]/ALDERACSTORE.COM STENCIL FILES/git.cornerstone/node_modules/@babel/types/lib/validators/generated/index.js:2748:35) at PluginPass.Program ([HOME]/... Business Dropbox/Marketing/[OFFICIAL ARCHIVE]/ALDERACSTORE.COM STENCIL FILES/git.cornerstone/node_modules/babel-plugin-lodash/lib/index.

## What works

If stencil bundle fails with 'Cannot read properties of undefined', check where your project lives. The reporter had theirs in Dropbox and the bundle succeeded after moving it to local storage. Cloud-synced folders can break the bundler. The Babel warnings in the output are nonfatal, ignore those.

## Caveats

This comes from one real issue thread (gh:bigcommerce/cornerstone#2428); it is the verified fix or approach from that thread, not a general manual. Check your version of BigCommerce first ,  maintainers often fix the underlying bug in a later release, and the thread may predate it.