https://github.com/dlo/2023-07-02-bun-typeerror
https://github.com/dlo/2023-07-02-bun-typeerror
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dlo/2023-07-02-bun-typeerror
- Owner: dlo
- Created: 2023-07-02T16:30:46.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-02T16:33:14.000Z (about 3 years ago)
- Last Synced: 2025-01-20T10:48:08.861Z (over 1 year ago)
- Language: TypeScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Repro with:
```
$ bun install
$ bun run index.mts
[0.07ms] ".env.development", ".env"
1 | 'use strict'
2 |
3 | // like String.prototype.search but returns the last index
4 | function _searchLast (str, rgx) {
5 | const matches = Array.from(str.matchAll(rgx))
^
TypeError: undefined is not an object (evaluating 'str.matchAll')
at _searchLast (/Users/dan/Projects/bun-typeerror-2023-07-02/node_modules/dotenv-expand/lib/main.js:5:29)
at _interpolate (/Users/dan/Projects/bun-typeerror-2023-07-02/node_modules/dotenv-expand/lib/main.js:12:39)
at expand (/Users/dan/Projects/bun-typeerror-2023-07-02/node_modules/dotenv-expand/lib/main.js:68:6)
at /Users/dan/Projects/bun-typeerror-2023-07-02/index.mts:5:0
at globalThis (/Users/dan/Projects/bun-typeerror-2023-07-02/index.mts:7:23)
```