v1.6.4
Patch Changes
-
#48
dce9cb5Thanks @flyon! - Templatetsconfig.jsonswitched frommoduleResolution: "node"tomoduleResolution: "bundler". The classic Node resolver doesn't honor theexportsfield in package.json, and@_linked/react(and friends) declare types only insideexports[".".types], not as a top-leveltypesfield. The result was a fresh scaffold compiling cleanly with yarn install but exploding under webpack/ts-loader:TS2307: Cannot find module '@_linked/react' or its corresponding type declarations. There are types at '.../node_modules/@_linked/react/lib/esm/index.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.bundleris the right choice for a webpack-bundled app — it honorsexports, doesn't require.jsextensions on relative imports, and doesn't enforce full ESM strictness.