Skip to content

Instantly share code, notes, and snippets.

@smrq
Last active March 17, 2021 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smrq/e4bba166d689765a126734649730699d to your computer and use it in GitHub Desktop.
Save smrq/e4bba166d689765a126734649730699d to your computer and use it in GitHub Desktop.
Parcel bug repro

Steps:

  • Create files in folder structure:
    • package.json
    • packages/foo/package.json
    • packages/foo/src/index.ts
  • Run yarn build
  • Behold error
{
"name": "parcel-repro",
"private": true,
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"scripts": {
"build": "parcel build 'packages/*'"
},
"workspaces": [
"packages/*"
],
"dependencies": {
"parcel": "^2.0.0-beta.2"
}
}
{
"name": "foo",
"version": "1.0.0",
"main": "dist/main.js",
"module": "dist/module.js",
"types": "dist/types.d.ts",
"source": "src/index.ts",
"license": "MIT"
}
export interface FooProps {
x: number;
y: number;
}
export function foo(props: FooProps) {
return props.x + props.y;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment