Path must be a string. Received null

🐛 bug report

Fresh project with blank HTML5 boilerplate index file will not build.

🎛 Configuration (.babelrc, package.json, cli command)

No configuration.

🤔 Expected Behavior

It should build and show the preview in the browser.

😯 Current Behavior

lawrence@LIGHTNING:/mnt/c/Users/Lawrence/Documents/dev/sandbox/instagram-api$ parcel index.html Server running at http://localhost:1234 🚨 /mnt/c/Users/Lawrence/Documents/dev/sandbox/instagram-api/index.html: Path must be a string. Received null at assertPath (path.js:28:11) at Object.join (path.js:1236:7) at module.exports (/usr/lib/node_modules/parcel-bundler/src/utils/urlJoin.js:11:29) at HTMLAsset.processSingleDependency (/usr/lib/node_modules/parcel-bundler/src/assets/HTMLAsset.js:91:19) at ast.walk.node (/usr/lib/node_modules/parcel-bundler/src/assets/HTMLAsset.js:138:43) at traverse (/usr/lib/node_modules/parcel-bundler/node_modules/posthtml/lib/api.js:105:26) at traverse (/usr/lib/node_modules/parcel-bundler/node_modules/posthtml/lib/api.js:111:5) at traverse (/usr/lib/node_modules/parcel-bundler/node_modules/posthtml/lib/api.js:105:17) at traverse (/usr/lib/node_modules/parcel-bundler/node_modules/posthtml/lib/api.js:111:5) at traverse (/usr/lib/node_modules/parcel-bundler/node_modules/posthtml/lib/api.js:105:17)

💁 Possible Solution

🔦 Context

This is the first time using parcel. There is no context. It should work.

💻 Code Sample

index.html

🌍 Your Environment

Software Version(s)
Parcel Latest
Node 8.11.1
npm/Yarn 5.6.0
Operating System Ubuntu / WSL

1 possible answer(s) on “Path must be a string. Received null

  1. In your html you have an empty link tag that should probably be requiring your css?

    <link rel="stylesheet" href="">

    But you’re definitely right that we need to work on creating more detailed and explanatory error messages.